F-Secure Internet Gatekeeper for Linux/Administrator’s Guide
97
9.5
External Output of Logs
Logs are saved as files by default. However, they can be output to other formats such as syslog. Use
pipes in the external command to redirect the output. To set the external output, specify the
configuration file (
/opt/f-secure/fsigk/conf/fsigk.ini
) in the following way:
access_log=|<External command> (For access logs)
detect_log=|<External command> (For virus logs)
info_log=|<External command>
(For information logs)
error_log=|<External command> (For error logs)
For example, to output SMTP virus detection information and error information to the
local0 facility
and the
err level of syslog, add the following setting to the “smtp” group in
/opt/f-secure/fsigk/conf/fsigk.ini
.
[smtp]
detect_log=|logger -t fsigk -p local0.err
error_log=|logger -t fsigk -p local0.err
To output files simultaneously, use the following settings:
[smtp]
detect_log=|tee -a log/smtp/detect.log | logger -t fsigk -p local0.err
error_log=|tee -a log/smtp/error.log | logger -t fsigk -p local0.err
After editing the configuration file, restart the service by selecting Proxy setting on the web console or
running the
rc.fsigk_smtp
command.