- What is Log Service?
- What functions does Log Service provide?
- What are the basic concepts of Log Service?
- What are the components of Log Service?
- How is a log defined in Log Service?
Log Service (abbreviated to LOG) is a platform service used to collect, store, and subscribe to logs. Various types of logs can be collected in real time, managed in a centralized way, and consumed by using Log Service.
- Provide multiple ways of writing logs (use APIs, SDKs, and Logtail to access Log Service).
- Use Logtail to define the log collection and parsing methods.
- Use machine groups to manage log collection on thousands of machines.
- Consume and subscribe to logs in real time.
- Provide the simple configuration in the console, which allows you to perform all the operations on the Web.
- Seamlessly interconnect with multiple cloud products of Alibaba Cloud in the backend.
- Core concepts: Project (the basic unit used to manage logs), Logstore, shard, topic (used for secondary classification of Logstores), log (number of logs), and log group.
- Concepts about log collection: Logtail configuration (used to define how to collect logs) and machine group (used to manage machines in groups).
Log Service consists of a log collection client, a server, and other systems. Currently, the client is a log collection agent (Logtail) that is compatible with Windows and Linux. The server is responsible for reading, writing, and configuring Log Service APIs. Other systems include Alibaba Cloud products such as Object Storage Service, that is, Log Service supports synchronizing logs to cloud products such as OSS.
A log contains three parts: time (required), log content (composed of key-value pairs), and metadata (the source IP address of logs).