Skip to content

Commit

Permalink
Fix: Update docs for logcli (#3212)
Browse files Browse the repository at this point in the history
* Update docs for logcli

Fix description for logcli, use proper flag names.
Extend docs with example using timestamp.

Signed-off-by: Michał Sochoń <[email protected]>

* Update cmd/logcli/main.go

Co-authored-by: Owen Diehl <[email protected]>

Co-authored-by: Owen Diehl <[email protected]>
  • Loading branch information
nvtkaszpir and owen-d authored Jan 22, 2021
1 parent a70e688 commit 3bb7f52
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion cmd/logcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,21 @@ of excluded labels. This extra information can be suppressed with the
--quiet flag.
By default we look over the last hour of data; use --since to modify
or provide specific start and end times with --start and --end.
or provide specific start and end times with --from and --to respectively.
Notice that when using --from and --to then ensure to use RFC3339Nano
time format, but without timezone at the end. The local timezone will be added
automatically or if using --timezone flag.
Example:
logcli query
--timezone=UTC
--from="2021-01-19T10:00:00Z"
--to="2021-01-19T20:00:00Z"
--output=jsonl
'my-query'
The output is limited to 30 entries by default; use --limit to increase.
While "query" does support metrics queries, its output contains multiple
Expand Down

0 comments on commit 3bb7f52

Please sign in to comment.