CONTENT
  • CHANGES
Szukaj
counter

#top Logwatch


Dodatki, wtyczki, skrypty, drobne modyfikacje do Logwatch.

http://www.sysadminwiki.ru/wiki/Logwatch
http://wiki.dieg.info/logwatch
https://sourceforge.net/projects/logwatch/files/



#top Logwatch addons


logwatch-cmdhostname-cen06.pl
logwatch-cmdhostname-cen06-sum.pl
logwatch/services/iptables
logwatch/services/haproxy
logwatch/services/varnish
logwatch/services/lighttpd



#top Download


Download:



#top Logwatch-man


logwatch - system log analyzer and reporter



#top SYNOPSIS


SYNOPSIS
logwatch [--detail level ] [--logfile log-file-group ] [--service service-name ] [--print] [--mailto address ] [--archives] [--range range ] [--debug level ] [--save file-name ] [--logdir directory ]
[--hostname hostname ] [--splithosts] [--multiemail] [--output output-type ] [--numeric] [--no-oldfiles-log] [--version] [--help]



#top OPTIONS


OPTIONS
--detail level
This is the detail level of the report. level can be a positive integer, or high, med, low, which correspond to the integers 10, 5, and 0, repectively.

--logfile log-file-group
This will force Logwatch to process only the set of logfiles defined by log-file-group (i.e. messages, xferlog, ...). Logwatch will therefore process all services that use those logfiles. This option can be specified more than once to specify multiple logfile-groups.

--service service-name
This will force Logwatch to process only the service specified in service-name (i.e. login, pam, identd, ...). Logwatch will therefore also process any log-file-groups necessary to process these services. This option can be specified more than once to specify multiple services to process. A useful service-name is All which will process all services (and logfile-groups) for which you have filters installed.

--print
Print the results to stdout (i.e. the screen).

--mailto address
Mail the results to the email address or user specified in address.

--range range
You can specify a date-range to process. Common ranges are Yesterday, Today, All, and Help. Additional options are listed when invoked with the Help parameter.

--archives
Each log-file-group has basic logfiles (i.e. /var/log/messages) as well as archives (i.e. /var/log/messages.? or /var/log/messages.?.gz). When used with "--range all", this option will make Logwatch search through the archives in addition to the regular logfiles. For other values of --range, Logwatch will search the appropriate archived logs.

--debug level
For debugging purposes. level can range from 0 to 100. This will really clutter up your output. You probably don't want to use this.

--save file-name
Save the output to file-name instead of displaying or mailing it.

--logdir directory
Look in directory for log files instead of the default directory.

--hostname hostname
Use hostname for the reports instead of this system's hostname. In addition, if HostLimit is set in the logwatch.conf configuration file (see MORE INFORMATION, below), then only logs from this hostname will be processed (where appropriate).

--numeric
Inhibits additional name lookups, displaying IP addresses numerically.

--no-oldfiles-log
Suppress the logwatch log, which informs about the old files in logwatch tmpdir.

--help
Displays usage information.



#top Examples


Examples:
logwatch --detail Med --print
Rezultat:





Zmodyfikowany ostatnio: 2016/04/07 19:23:51 (8 lat temu), textsize: 5,70 kB, htmlsize: 9,33 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników