Skip to content
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

More help text for vespa log #31143

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions client/go/internal/cli/cmd/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ func newLogCmd(cli *CLI) *cobra.Command {
The logs shown can be limited to a relative or fixed period. All timestamps are shown in UTC.

Logs for the past hour are shown if no arguments are given.

This command is not supported for a local endpoint.
Make note of the container name used to serve the local endpoint, often called "vespa" in the examples,
then run the container command to dump logs, like:
* docker exec vespa vespa-logfmt # dump logs from Docker container named "vespa"
* podman exec vespa vespa-logfmt # likewise, for containers running using Podman
`,
Example: `$ vespa log 1h
$ vespa log --nldequote=false 10m
Expand Down