Skip to content

Disabling headers #202

Answered by superbrothers
felipecrs asked this question in Q&A
Dec 16, 2022 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

We've released stern v1.23.0. It allows you to print only log lines with --only-log-line flag.

$ stern . --tail=1 --no-follow
+ nginx-cfbcb7b98-96xsv › nginx
+ nginx-cfbcb7b98-29wn7 › nginx
nginx-cfbcb7b98-96xsv nginx 2023/01/27 13:20:48 [notice] 1#1: start worker process 46
- nginx-cfbcb7b98-96xsv › nginx
nginx-cfbcb7b98-29wn7 nginx 2023/01/27 13:20:45 [notice] 1#1: start worker process 46
- nginx-cfbcb7b98-29wn7 › nginx

$ stern . --tail=1 --no-follow --only-log-lines
nginx-cfbcb7b98-96xsv nginx 2023/01/27 13:20:48 [notice] 1#1: start worker process 46
nginx-cfbcb7b98-29wn7 nginx 2023/01/27 13:20:45 [notice] 1#1: start worker process 46

You should try it.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@rkmathi
Comment options

@superbrothers
Comment options

@floryut
Comment options

@felipecrs
Comment options

@superbrothers
Comment options

Comment options

You must be logged in to vote
1 reply
@felipecrs
Comment options

Answer selected by felipecrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
kind/feature New feature or request
4 participants
Converted from issue

This discussion was converted from issue #201 on December 19, 2022 00:23.