All Products
Search
Document Center

Simple Log Service:JSON format

Last Updated:Jun 20, 2026

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.

Important

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 __tag__:abc.

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.

{"__time__":1453809242,"__topic__":"","__source__":"10.170.***.***","ip":"10.200.**.***","time":"26/Jan/2016:19:54:02 +0800","url":"POST
              /PutData?Category=YunOsAccountOpLog&AccessKeyId=<yourAccessKeyId>&Date=Fri%2C%2028%20Jun%202013%2006%3A53%3A30%20GMT&Topic=raw&Signature=<yourSignature>
              HTTP/1.1","status":"200","user-agent":"aliyun-sdk-java"}

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.