SF.net SVN: logwatch:[112]

[email protected]
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 112
          http://logwatch.svn.sourceforge.net/logwatch/?rev=112&view=rev
Author:   stefjakobs
Date:     2012-07-30 18:58:44 +0000 (Mon, 30 Jul 2012)
Log Message:
-----------
fix hostlimit documentation

Modified Paths:
--------------
    conf/logwatch.conf
    scripts/logwatch.pl

Modified: conf/logwatch.conf
===================================================================
--- conf/logwatch.conf	2012-07-16 14:02:56 UTC (rev 111)
+++ conf/logwatch.conf	2012-07-30 18:58:44 UTC (rev 112)
@@ -115,16 +115,16 @@
 mailer = "/usr/sbin/sendmail -t"
 
 #
-# With this option set to 'Yes', only log entries for this particular host
-# (as returned by 'hostname' command) will be processed.  The hostname
-# can also be overridden on the commandline (with --hostname option).  This
-# can allow a log host to process only its own logs, or Logwatch can be
-# run once per host included in the logfiles.
+# With this option set to a comma separted list of hostnames, only log entries
+# for these particular hosts will be processed.  This can allow a log host to
+# process only its own logs, or Logwatch can be run once per a set of hosts
+# included in the logfiles.
+# Example: HostLimit = hosta,hostb,myhost
 #
 # The default is to report on all log entries, regardless of its source host.
 # Note that some logfiles do not include host information and will not be
 # influenced by this setting.
 #
-#HostLimit = Yes
+#HostLimit = myhost
 
 # vi: shiftwidth=3 tabstop=3 et

Modified: scripts/logwatch.pl
===================================================================
--- scripts/logwatch.pl	2012-07-16 14:02:56 UTC (rev 111)
+++ scripts/logwatch.pl	2012-07-30 18:58:44 UTC (rev 112)
@@ -1101,6 +1101,7 @@
    print "--debug <level>: Debug Level - High, Med, Low or any #.\n";
    print "--hostformat: Host Based Report Options - none [default], split, splitmail.\n"; #8.0
    print "--hostlimit: Limit report to hostname - host1,host2.\n"; #8.0
+   print "--hostname: overwrites hostname\n";
    print "--html_wrap <num_characters>: Default is 80.\n";
    print "--version: Displays current version.\n";
    print "--help: This message.\n";
@@ -1208,6 +1209,9 @@
    &output( $index_par, "       Type of Output/Format: $Config{'output'} / $Config{'format'}\n", "line");
    &output( $index_par, "       Logfiles for Host: $Config{'hostname'}\n", "line");
 
+   if ( $Config{'hostlimit'} ) {
+      &output( $index_par, "       Hosts limited to:  $Config{'hostlimit'}\n", "line");
+   }
    if ( $Config{'format'} eq "html" ) {
       &output( $index_par, "\n", "stop");
    } else {

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.