Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:base-system:log.essentials [2023/10/14 08:23] – use service command vgaetera | docs:guide-user:base-system:log.essentials [2024/06/02 06:30] – [logread] stokito | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| ===== logd ===== | ===== logd ===== | ||
| - | '' | + | '' |
| + | It also listens for ''/ | ||
| + | It' | ||
| <code bash> | <code bash> | ||
| Line 70: | Line 72: | ||
| ==== logread ==== | ==== logread ==== | ||
| - | This is the default interface | + | This is the default interface |
| - | It is a local executable that will read the ring buffer records and display them chronologically. | + | |
| + | It is a local executable | ||
| + | |||
| + | To show all log messages that contains a specific text (like a daemon name) and follow (like in '' | ||
| + | <code bash> | ||
| + | logread -fe firewall | ||
| + | </ | ||
| + | |||
| + | Options: | ||
| + | < | ||
| + | -s < | ||
| + | -l < | ||
| + | -e < | ||
| + | -r < | ||
| + | -F < | ||
| + | -S < | ||
| + | -p < | ||
| + | -h < | ||
| + | -P < | ||
| + | -z < | ||
| + | -Z < | ||
| + | -f Follow log messages | ||
| + | -u Use UDP as the protocol | ||
| + | -t Add an extra timestamp | ||
| + | -0 Use \0 instead of \n as trailer when using TCP | ||
| + | </ | ||
| + | |||
| + | Please note that if you install the [[: | ||
| + | |||
| ==== Local file logging ==== | ==== Local file logging ==== | ||
| Line 201: | Line 232: | ||
| </ | </ | ||
| + | If you add to the rsyslog receiver' | ||
| + | |||
| + | < | ||
| + | $template DynamicFile,"/ | ||
| + | *.* -? | ||
| + | </ | ||
| + | you get the messages separated from every sender in a own folder. | ||
| ===== rsyslog and Logz.io ===== | ===== rsyslog and Logz.io ===== | ||
| You can support logging direct to a cloud ELK provider like Logz.io by adding a few lines to your '' | You can support logging direct to a cloud ELK provider like Logz.io by adding a few lines to your '' | ||