HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

logwatch — Summarizes many different logs for common services (e.g. apache, pam_unix, sshd, etc.) in a single r

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlogwatchmanyforclisummarizesdifferentlogs
linux

Problem

How to use the logwatch command: Summarizes many different logs for common services (e.g. apache, pam_unix, sshd, etc.) in a single report. More information: <https://manned.org/logwatch>.

Solution

logwatch — Summarizes many different logs for common services (e.g. apache, pam_unix, sshd, etc.) in a single report. More information: <https://manned.org/logwatch>.

Analyze logs for a range of dates at a 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|...}}

Code Snippets

Analyze logs for a range of dates at a 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|...}}

Context

tldr-pages: linux/logwatch

Revisions (0)

No revisions yet.