-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logcli --quiet flag misleading #1676
Comments
@Dieterbe You see this behaviour just when |
i used logcli query. did not try tail. |
Yeah, something wrong. Was trying some debugging. Somehow,
|
Bug is likely in this line https://github.com/grafana/loki/blob/master/cmd/logcli/main.go#L66 If we print the value of |
Great @adityacs , thanks! |
this is still not fixed.
for both these lines, the first two columns (i.e. up until Am I misinterpreting what "Log line" means? does it not mean the lines emitted by my app? |
@Dieterbe I think in this case, when the help says log line, it's instead referring to the log entry from Loki's perspective (i.e., the combination of the timestamp, the label set, and the raw log line). Given that, A combination of |
yes --quiet and -o raw combined works well.
i guess throughout the docs and help menus it should be clearer what the different kinds of "log lines" are. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This commit attempts to do two things: 1. Differentiate between log entries and raw log lines, where the latter is what is produced by `-oraw`. 2. Explain the difference between `logcli query` and `logcli instant-query`. Fixes grafana#1676.
* clarify logcli commands and output This commit attempts to do two things: 1. Differentiate between log entries and raw log lines, where the latter is what is produced by `-oraw`. 2. Explain the difference between `logcli query` and `logcli instant-query`. Fixes #1676. * address feedback * address more feedback * explain that instant-query is not useful for log lines * address review feedback This commit leaves logcli.md unmodified; that will be done in a later commit if the changes are approved. * sync logcli.md with command output
latest logcli.
--quiet flag promises to "only show log lines".
but this is not true. it still shows all kinds of extra json data I don't want.
the only way i can get "just the log lines" is by adding -o raw
cc @owen-d
The text was updated successfully, but these errors were encountered: