Search HTTPD Log Links Macro
=search_httpd_log_links() is a script macro to report search links in the HTTPD log file.
search_httpd_log_links(site, s) init status =piktstatus level =piktlevel task "Report new search httpd log links" input logfile "=httpd_logdir/access_log_(site)" filter "=httpd_cgibin_root/webstats.pl -f -(s) -sl | =sort | =uniq -c | =sort +0n" rule output mail $inlin
webstats.pl is a Perl script (not shown) to filter HTTPD log files and output certain types of information in various formats.
You might invoke the =search_httpd_log_links() macro in your alarms.cfg for more than one website log file thusly:
/////////////////////////////////////////////////////////////////////////////// SearchHttpdLogLinksEMC =search_httpd_log_links(emc, e) /////////////////////////////////////////////////////////////////////////////// SearchHttpdLogLinksPIKT =search_httpd_log_links(pikt, p) ///////////////////////////////////////////////////////////////////////////////
Output from the SearchHttpdLogLinksEMC script might look like, for example:
INFO: SearchHttpdLogLinksEMC Report new search httpd log links ... ...
And output from the SearchHttpdLogLinksPIKT script might look like, for example:
INFO: SearchHttpdLogLinksPIKT Report new search httpd log links ... ...
For more examples, see Samples.