After log data is shipped from Simple Log Service to Object Storage Service (OSS), the log data can be stored in different formats. This topic describes the JSON format.
Parameter
The following figure shows the parameter that you must configure if you specify json for the Storage Format in a shipping rule. For more information, see Configure a data shipping rule.
Parameter | Description |
Ship Tags | Specifies whether to ship the tag field of logs. Tag example: __tag__:abc. |
Sample URLs of OSS files
After logs are shipped to OSS, the logs are stored in OSS buckets. The following table provides examples of the URLs of the files that store the logs.
Compression type | File extension | Sample URL | Description |
Not compressed | None | oss://oss-shipper-shenzhen/ecs_test/2016/01/26/20/54_1453812893059571256_937 | You can download the JSON files that are not compressed to your computer and open the files as text files. Sample file:
|
snappy | .snappy | oss://oss-shipper-shenzhen/ecs_test/2016/01/26/20/54_1453812893059571256_937.snappy | For information about how to decompress a file that is compressed by using Snappy, see Decompression tools for Snappy-compressed files. |