Skip to content

Commit

Permalink
Added example to README (#295)
Browse files Browse the repository at this point in the history
Show all logs of the last 5min by time, sorted by time
  • Loading branch information
guettli committed Apr 24, 2024
1 parent d82cc9f commit c1649ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ Show auth activity from 15min ago with timestamps
stern auth -t --since 15m
```

Show all logs of the last 5min by time, sorted by time
```
stern --since=5m --no-follow --only-log-lines -A -t . | sort -k4
```

Show auth activity with timestamps in specific timezone (default is your local timezone)
```
stern auth -t --timezone Asia/Tokyo
Expand Down

0 comments on commit c1649ca

Please sign in to comment.