When you ship logs from Simple Log Service to Object Storage Service (OSS), you can store them in various file formats. This topic describes the JSON format.
The old version of shipping logs to OSS is discontinued. Refer to the new version.
Parameter configuration
When you configure a data shipping rule, if you select json as the Storage Format, you can configure the following parameter.
|
Parameter |
Description |
|
Ship tags |
Specifies whether to ship the log tag field. The tag format is |
OSS file paths
The following table lists example OSS file paths for shipped logs.
|
Compression type |
File extension |
OSS file path example |
Description |
|
Not compressed |
None |
oss://oss-shipper-shenzhen/ecs_test/2016/01/26/20/54_1453812893059571256_937 |
You can download an uncompressed JSON file and open it with a text editor. The following code shows a sample of the file's contents.
|
|
snappy |
.snappy |
oss://oss-shipper-shenzhen/ecs_test/2016/01/26/20/54_1453812893059571256_937.snappy |
To decompress a Snappy-compressed file, see Decompression tools for Snappy-compressed files. |