New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logwatch: add page #1311
logwatch: add page #1311
Conversation
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.
pages/linux/logwatch.md
Outdated
@@ -0,0 +1,11 @@ | |||
# logwatch | |||
|
|||
> Analyzes and summarizes system logs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "system" mean here ? syslog ? Or any application log ? If its the latter, where is the location specified ?
pages/linux/logwatch.md
Outdated
|
||
- Analyze yesterday's logs in medium detail: | ||
|
||
`logwatch --range yesterday --detail med` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yesterday and med to be in tokens.
pages/linux/logwatch.md
Outdated
|
||
- Get the summarized login information for the last 3 weeks: | ||
|
||
`logwatch --range 'since 3 weeks ago' --detail low --service pam_unix ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use tokens for the 3 options. And I think, instead of specifying med and low in separate examples, maybe you can mention 'in a given detail' in the description and write '--details {{low|medium|others}}' in the example. A shorter and concise way to express more.
Hi everyone. This thread is being closed as there was no response to the previous prompt. However, please leave a comment whenever you're ready to resume, so the thread can be reopened. Thanks again! |
* rewrote tagline * used tokens in first example * reduced the number of examples
@agnivade I addressed the issues you mentioned in the review; however, I'm not sure how to make the commit I just added to switch the issue status from "Changes requested" back to "Needing Review". |
pages/linux/logwatch.md
Outdated
|
||
`logwatch --range yesterday --detail med` | ||
|
||
- Get the summarized login information for the last 3 weeks: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the --service
flag is a useful one. In case someone wants to get logs of a particular service. Let's keep that one.
pages/linux/logwatch.md
Outdated
@@ -1,11 +1,7 @@ | |||
# logwatch | |||
|
|||
> Analyzes and summarizes system logs. | |||
> Summarizes many different logs for common services (e.g., apache, SSHD, etc.) in single report. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- in single report -> in a single report.
- SSHD -> sshd. (True that its an acronym, but just like tcp, I think its more familiar in its lowercase form)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just some minor comments to take care of.
Ping @kalebo :) (let us know you feel we're being unreasonably picky, or have any other concerns -- we're still learning the kinks of properly maintaining such a highly collaborative project). |
Thanks for the contribution! 🎉 |
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.