Skip to content

Commit

Permalink
add more sample to readable time format parameter for get_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Jan 23, 2018
1 parent cb90a19 commit ffcb03c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ It will use account `main` to copy project `p1` in its region to another region
1. Normally case:

```shell
> aliyun log get_logs --request="{\"topic\": \"\", \"logstore\": \"logstore1\", \"project\": \"dlq-test-cli-123\", \"toTime\": \"123\", \"offset\": \"0\", \"query\": \"*\", \"line\": \"10\", \"fromTime\": \"123\", \"reverse\":\"false\"}"
> aliyun log get_logs --request="{\"topic\": \"\", \"logstore\": \"logstore1\", \"project\": \"dlq-test-cli-123\", \"toTime\": \"2018-01-01 10:10:10\", \"offset\": \"0\", \"query\": \"*\", \"line\": \"10\", \"fromTime\": \"2018-01-01 08:08:08\", \"reverse\":\"false\"}"
```

2. Input via file:
Expand All @@ -212,11 +212,11 @@ the content in file `get_logs.json` as below. Note: the `\` is unnecessary to es
"topic": "",
"logstore": "logstore1",
"project": "project1",
"toTime": "12345679",
"toTime": "2018-01-01 11:11:11",
"offset": "0",
"query": "*",
"line": "10",
"fromTime": "1234567",
"fromTime": "2018-01-01 10:10:10",
"reverse": "true"
}
```
Expand Down Expand Up @@ -590,11 +590,11 @@ All the commands support below optional global options:
"topic": "",
"logstore": "logstore1",
"project": "dlq-test-cli-35144",
"toTime": "1510582941",
"toTime": "2018-01-01 11:11:11",
"offset": "0",
"query": "*",
"line": "10",
"fromTime": "1510579341",
"fromTime": "2018-01-01 10:10:10",
"reverse": "true"
}
```
Expand Down
10 changes: 5 additions & 5 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ region-endpoint=cn-hangzhou.log.aliyuncs.com
1. 一般输入

```shell
> aliyun log get_logs --request="{\"topic\": \"\", \"logstore\": \"logstore1\", \"project\": \"dlq-test-cli-123\", \"toTime\": \"123\", \"offset\": \"0\", \"query\": \"*\", \"line\": \"10\", \"fromTime\": \"123\", \"reverse\":\"false\"}"
> aliyun log get_logs --request="{\"topic\": \"\", \"logstore\": \"logstore1\", \"project\": \"dlq-test-cli-123\", \"toTime\": \"2018-01-01 11:11:11\", \"offset\": \"0\", \"query\": \"*\", \"line\": \"10\", \"fromTime\": \"2018-01-01 10:10:10\", \"reverse\":\"false\"}"
```

2. 文件输入
Expand All @@ -211,11 +211,11 @@ region-endpoint=cn-hangzhou.log.aliyuncs.com
"topic": "",
"logstore": "logstore1",
"project": "project1",
"toTime": "12345679",
"toTime": "2018-01-01 11:11:11",
"offset": "0",
"query": "*",
"line": "10",
"fromTime": "1234567",
"fromTime": "2018-01-01 10:10:10",
"reverse": "true"
}
```
Expand Down Expand Up @@ -590,11 +590,11 @@ def create_logstore(self, project_name, logstore_name, ttl=2, shard_count=30):
"topic": "",
"logstore": "logstore1",
"project": "dlq-test-cli-35144",
"toTime": "1510582941",
"toTime": "2018-01-01 11:11:11",
"offset": "0",
"query": "*",
"line": "10",
"fromTime": "1510579341",
"fromTime": "2018-01-01 10:10:10",
"reverse": "true"
}
```
Expand Down

0 comments on commit ffcb03c

Please sign in to comment.