10.20.20.10;[Tue Jan 22 14:49:45 CST 2019 +0800];GET /online/sample HTTP/1.1;127.0.0.1;200;647;35;http://127.0.0.1/
IP: 10.20.20.10time: [Tue Jan 22 14:49:45 CST 2019 +0800]request: GET /online/sample HTTP/1.1host: 127.0.0.1status: 200length: 647bytes: 35referer: http://127.0.0.1/
__CONTENT__
as a key and uses the original text as the value by default. The key-value pair is as follows:LogListener Parsing Mode | Key | Description |
Full text in a single line/Full text in multi lines | __CONTENT__ | __CONTENT__ is the key name by default. |
JSON format | Name in the JSON file | The name and value in the original text of the JSON log are used as a key-value pair. |
Separator format | Custom | After dividing fields using separators, you need to define a key name for each field group. |
Full regular expression | Custom | After extracting fields based on a regular expression, you need to define a key name for each field group. |
Collection Method | Description |
API | You can call CLS APIs to upload structured logs to CLS. For more information, see Uploading Log via API. |
SDK | |
LogListener client | LogListener is a log collection client provided by CLS. You can quickly access CLS by simply configuring LogListener in the console. For more information, see LogListener Use Process. |
Category | Collection via LogListener | Collection via API |
Code modification | Provides a non-intrusive collection method for applications, without code modification. | Reports logs only after modifying application code. |
Resumable upload | Supports resumable upload of logs. | Automatically implemented by code. |
Retransmission upon failure | Provides an inherent retry mechanism. | Automatically implemented by code. |
Local cache | Supports local cache, ensuring data integrity during peak hours. | Automatically implemented by code. |
Resource occupation | Occupies resources such as memory and CPU resources. | Occupies no additional resources. |
System Environment | Recommended Access Method |
Linux/Unix | |
Windows | |
iOS/Android/Web |
Apakah halaman ini membantu?