Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
* First, open a terminal window and become '''root'''. Enter the following to install:
{{Code|<pre>yum install logwatch}}</pre>
* You can customize the settings by adding options to ::'''''/etc/logwatch/logwatch.conf'NOTE:''''. by default it sends the daily logwatch email to the local root mail folder. If you want to forward these emails to another <code>yum</code> (including externaldeprecated) account, see [http:has been replaced with <code>dnf<//wiki.amahi.org/indexcode> as the package manager for Fedora 23 and greater.php/Forward_System_Emails Forward System Emails]
* If you want You can customize the settings by adding options to send '''''/etc/logwatch/conf/logwatch.conf'''''. By default it sends the daily logwatch emails email to an address different from other the local root emailsmail box. To change it, add this line(change user@yourisp.com to desired email address):{{Text|MailTo <nowikipre>Output =mailMailTo = user@yourisp.com</nowikipre> (your email address)}}
* To test, enter the command '''''logwatch''''' and go check your email. If you want the email in html, add this line:{{Text|Output <nowikipre>Format =html</nowikipre> html}}
* To test, enter the command '''''logwatch''''' and go check your email. <pre>logwatch</pre>* Ensure sendmail or postfix is running (rerun command and change '''''service sendmail status'''''to '''''start''''' if not) :<pre>service sendmail status</pre>or it won't work.<pre>service postfix status</pre>
'''Optional:'''
* These are a few more basic options that can be configured.
** '''Range = yesterday''' (line 65default) - additional values are '''all''' or '''today'''.** '''Detail = Low''' (line 72default) - additional values are '''med''' or '''high'''. I set mine to '''med'''.
This application runs transparent in the background, once daily in the morning. If you want to run it more frequently (i.e. send logs for today), then change the range and execute the command '''''logwatch''''' as needed.
 
'''NOTE:''' If you want to forward these emails to another (including external) account, see [http://wiki.amahi.org/index.php/Forward_System_Emails Forward System Emails].
12,424

edits