Last Updated: Apr 19, 2017

The data storage unit is called LogStore. By default, you can create 10 logstores for each project. The LogStore name is unique in the project. LogStore is an ingress for all log data. You can perform read and write operations on the logstore.

LogStore naming rules:

  • A LogStore name can only contain lower-case letters, numbers, hyphens (-), and underlines (_).
  • A LogStore name must start and end with a lower-case letter or number.
  • The length must be 2–63 bytes.

Example of the complete resource:

  1. {
  2. logstoreName" : "access_log",
  3. "ttl": 1,
  4. "shardCount": 2,
  5. "createTime":1439538649,
  6. "lastModifyTime":1439538649
  7. }

Parameter definitions:

Parameter Name Type Required or Not Description
logstoreName string Yes The logstore name, which is unique in the project.
ttl integer Yes The Time-to-Live (TTL) of log data. The unit is days and the minimum value is 1 day.
shardCount integer Yes Log data Service Unit
createTime (OutputOnly) integer No The creation time of this resource on the server (output only).
lastModifyTime (OutputOnly) integer No The update time of this resource on the server (output only).
Thank you! We've received your feedback.