Skip to content

Commit

Permalink
更新jmes-filter错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed Feb 6, 2018
1 parent fe5e9c5 commit c819b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorials/tutorial_pull_logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ aliyun log pull_log --project_name="p1" --logstore_name="l1" --shard_id=3 --from
例如:

```shell
aliyun log pull_log --project_name="p1" --logstore_name="l1" --shard_id=3 --from_time="2018-01-24 16:00:00 CST" --to_time="2018-01-24 17:00:00 CST" --jmes-filter="join('\n', map(&to_string(@), @))" >> ~/Desktop/test.data
aliyun log pull_log --project_name="p1" --logstore_name="l1" --shard_id=3 --from_time="2018-01-24 16:00:00 CST" --to_time="2018-01-24 17:00:00 CST" --jmes-filter="join('\n', map(&to_string(@), logs))" >> ~/Desktop/test.data
```

输出将被存储在文件`test.data`中, 格式为:
Expand Down Expand Up @@ -112,7 +112,7 @@ aliyun log pull_log --project_name="p1" --logstore_name="l1" --shard_id=3 --from

这种情况下, 使用`jmes-filter`的话会针对每一块的输出内容. 也就是上面2块内容分别应用`jmes-filter`来处理. 例如:
```shell
aliyun log pull_log --project_name="p1" --logstore_name="l1" --shard_id=3 --from_time="2018-01-24 16:00:00 CST" --to_time="2018-01-24 17:00:00 CST" --jmes-filter="join('\n', map(&to_string(@), @))"
aliyun log pull_log --project_name="p1" --logstore_name="l1" --shard_id=3 --from_time="2018-01-24 16:00:00 CST" --to_time="2018-01-24 17:00:00 CST" --jmes-filter="join('\n', map(&to_string(@), logs))"
```

输出:
Expand Down

0 comments on commit c819b66

Please sign in to comment.