Skip to content

minikube logs output is not tail(1) format #17733

@pnasrat

Description

@pnasrat

The minikube logs code states in a comment that it uses tail(1) format for multiple logs

// Output displays logs from multiple sources in tail(1) format

The GNU tail invocation docs specifies

If more than one file is specified, tail prints a one-line header before the output for each file, consisting of:

==> file name <==

Actual output

Logs have additional * on the header line and around it:

minikube logs | head
* 
* ==> Audit <==
* |--------------|-----------------------|----------|---------|---------|---------------------|---------------------|
|   Command    |         Args          | Profile  |  User   | Version |     Start Time      |      End Time       |
|--------------|-----------------------|----------|---------|---------|---------------------|---------------------|
| start        | --alsologtostderr -v4 | minikube | pnasrat | v1.32.0 | 04 Dec 23 11:58 EST | 04 Dec 23 11:59 EST |
| help         |                       | minikube | pnasrat | v1.32.0 | 05 Dec 23 10:12 EST | 05 Dec 23 10:12 EST |
| update-check |                       | minikube | pnasrat | v1.32.0 | 05 Dec 23 10:38 EST | 05 Dec 23 10:38 EST |
|--------------|-----------------------|----------|---------|---------|---------------------|---------------------|

/kind bug
/assign

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions