Audit log fields
CloudLens for SLS logs contain the following fields.
Audit log
|
Parameter |
Description |
|
APIVersion |
The API version. |
|
CallerType |
The type of the caller. |
|
ClientIp |
The client IP address. |
|
Config |
The Logtail collection configuration. |
|
ConsumerGroup |
The name of the consumer group. |
|
Dashboard |
The ID of the dashboard. |
|
ErrorCode |
The error code. |
|
ErrorMsg |
The error message. |
|
InvokerUid |
The Alibaba Cloud account ID of the caller. |
|
Job |
The name of the job. |
|
JobType |
The type of job. Valid values are:
|
|
Latency |
The request latency, in microseconds. |
|
LogStore |
The name of the Logstore. |
|
MachineGroup |
The name of the machine group. |
|
Method |
The request method. |
|
Project |
The name of the Project. |
|
RequestId |
The request ID. |
|
SavedSearch |
The ID of the saved search. |
|
Status |
The status code. |
|
Time |
The operation timestamp. |
|
UserAgent |
The user agent. |
Error logs
The Method field classifies error logs into three categories: read operations, write operations, and resource operations.
|
Category |
Request method |
|
Read operation |
Request methods that generate read operation logs:
|
|
Write operation |
Request methods that generate write operation logs:
|
|
Resource operation |
Request methods that generate resource operation logs: Other API operations, such as CreateProject and DeleteProject. |
Common fields in error logs
|
Parameter |
Description |
Example |
|
APIVersion |
The API version. |
0.6.0 |
|
CallerType |
The type of the caller. |
Subuser |
|
InvokerUid |
The Alibaba Cloud account ID of the caller. |
175****532 |
|
Latency |
The request latency, in microseconds. |
123279 |
|
LogStore |
The name of the LogStore. |
test_metric |
|
Method |
The request method. |
GetLogStoreLogs |
|
NetOutFlow |
The amount of traffic read, in bytes. |
120 |
|
NetworkOut |
The amount of traffic read over the public network, in bytes. |
10 |
|
Project |
The name of the Project. |
project-1 |
|
RequestId |
The request ID. |
8AEADC8B0AF2FA2592C9**** |
|
SourceIP |
The client IP address. |
47.100..** |
|
Status |
The status code of the response. |
404 |
|
UserAgent |
The client user agent. |
sls-java-sdk-v-0.6.1 |
|
ErrorCode |
The error code. |
LogStoreNotExist |
|
ErrorMsg |
The error message. |
LogStore test_metric does not exist |
Fields for read operation errors
|
Parameter |
Description |
Example |
|
BeginTime |
The start time of the request, in Unix timestamp format. |
1523868463 |
|
EndTime |
The end time of the request, in Unix timestamp format. |
1523869363 |
|
Offset |
The row offset for the GetLogs request. |
20 |
|
Query |
The original query statement. |
UserAgent: [consumer-group-java]* |
|
RequestLines |
The expected number of rows to return. |
100 |
|
ResponseLines |
The actual number of rows returned. |
100 |
|
Reverse |
Specifies whether to return logs in reverse chronological order based on the log timestamp.
|
0 |
|
TermUnit |
The number of words in the query statement after word segmentation. |
0 |
|
Topic |
The log topic. |
topic-1 |
Fields for write operation errors
|
Parameter |
Description |
Example |
|
InFlow |
The size of the raw data written, in bytes. |
200 |
|
InputLines |
The number of rows in the write request. |
10 |
|
NetInflow |
The size of the data written after compression, in bytes. |
100 |
|
Shard |
The ID of the Shard where the data was written. |
1 |
|
Topic |
The log topic. |
topic-1 |
Monitoring metrics
|
Metric name |
Unit |
Description |
Tags |
|
LogStore_succeed_write_lines |
count |
The number of log entries successfully written. |
userId, Project, LogStore, method |
|
LogStore_intranet_inflow_bytes |
byte |
The volume of intranet traffic successfully written (after compression). |
userId, Project, LogStore, method |
|
LogStore_intranet_origin_inflow_bytes |
byte |
The volume of intranet traffic successfully written (before compression). |
userId, Project, LogStore, method |
|
LogStore_intranet_outflow_bytes |
byte |
The volume of intranet traffic successfully read. |
userId, Project, LogStore, method |
|
LogStore_internet_inflow_bytes |
byte |
The volume of internet traffic successfully written (after compression). |
userId, Project, LogStore, method |
|
LogStore_internet_origin_inflow_bytes |
byte |
The volume of internet traffic successfully written (before compression). |
userId, Project, LogStore, method |
|
LogStore_internet_outflow_bytes |
byte |
The volume of internet traffic successfully read. |
userId, Project, LogStore, method |
|
LogStore_acceleration_inflow_bytes |
byte |
The volume of global acceleration traffic successfully written (after compression). |
userId, Project, LogStore, method |
|
LogStore_acceleration_origin_inflow_bytes |
byte |
The volume of global acceleration traffic successfully written (before compression). |
userId, Project, LogStore, method |
|
LogStore_acceleration_outflow_bytes |
byte |
The volume of global acceleration traffic successfully read. |
userId, Project, LogStore, method |
|
LogStore_inflow_bytes |
byte |
The total volume of traffic successfully written (after compression). |
userId, Project, LogStore, method |
|
LogStore_origin_inflow_bytes |
byte |
The total volume of traffic successfully written (before compression). |
userId, Project, LogStore, method |
|
LogStore_outflow_bytes |
byte |
The total volume of traffic successfully read. |
userId, Project, LogStore, method |
|
LogStore_read_count |
count |
The number of read requests. |
userId, Project, LogStore, method |
|
LogStore_read_count_4xx |
count |
The number of read requests returning 4xx errors. |
userId, Project, LogStore, method |
|
LogStore_read_count_5xx |
count |
The number of read requests returning 5xx errors. |
userId, Project, LogStore, method |
|
LogStore_write_count |
count |
The number of write requests. |
userId, Project, LogStore, method |
|
LogStore_write_count_4xx |
count |
The number of write requests returning 4xx errors. |
userId, Project, LogStore, method |
|
LogStore_write_count_5xx |
count |
The number of write requests returning 5xx errors. |
userId, Project, LogStore, method |
|
LogStore_search_count |
count |
The number of search requests. |
userId, Project, LogStore, method |
|
LogStore_search_count_4xx |
count |
The number of search requests returning 4xx errors. |
userId, Project, LogStore, method |
|
LogStore_search_count_5xx |
count |
The number of search requests returning 5xx errors. |
userId, Project, LogStore, method |
|
LogStore_read_latency_avg |
microsecond |
The average read latency. |
userId, Project, LogStore, method |
|
LogStore_read_latency_p95 |
microsecond |
The P95 read latency. |
userId, Project, LogStore, method |
|
LogStore_read_latency_p99 |
microsecond |
The P99 read latency. |
userId, Project, LogStore, method |
|
LogStore_write_latency_avg |
microsecond |
The average write latency. |
userId, Project, LogStore, method |
|
LogStore_write_latency_p95 |
microsecond |
The P95 write latency. |
userId, Project, LogStore, method |
|
LogStore_write_latency_p99 |
microsecond |
The P99 write latency. |
userId, Project, LogStore, method |
|
client_ip_read_count |
count |
The number of unique source IP addresses for successful read requests. |
userId, Project, LogStore, method |
|
client_ip_write_count |
count |
The number of unique source IP addresses for successful write requests. |
userId, Project, LogStore, method |
Other
CloudLens for SLS also collects important logs, detailed logs, and task run logs from Log Service. For field descriptions, see Service log types.