mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
logwatch: add page (#1311)
Logwatch is a useful command to summarize log files. It can be configured to use settings from it's config file and run by cron, but it can also be useful to run ad-hoc from the command line.
This commit is contained in:
parent
497a561ae1
commit
4e544c1230
1 changed files with 11 additions and 0 deletions
11
pages/linux/logwatch.md
Normal file
11
pages/linux/logwatch.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# logwatch
|
||||
|
||||
> Summarizes many different logs for common services (e.g., apache, pam_unix, sshd, etc.) in a single report.
|
||||
|
||||
- Analyze logs for a range of dates at certain level of detail:
|
||||
|
||||
`logwatch --range {{yesterday|today|all|help}} --detail {{low|medium|others}}'`
|
||||
|
||||
- Restrict report to only include information for a selected service:
|
||||
|
||||
`logwatch --range {{all}} --service {{apache|pam_unix|etc}}`
|
Loading…
Add table
Reference in a new issue