[syslog-ng]logging to file and remote host

Atif Ghaffar syslog-ng@lists.balabit.hu
Fri, 29 Aug 2003 02:48:38 +0200


Harry Hoffman wrote:

> Hi Atif,
> 
> Not sure on HP-UX but I can confirm that this works on Solaris and Linux.
> I do something like:
> mail.* /var/log/maillog
> *.warn @loghost


Hi Harry,

Thanks for the quick reply,

You are sending two entries to different destinations.

Can you do:
mail.* /var/log/maillog
mail.* @loghost


What we are trying to do is log everything localy as well as remotely.
So if the remote server is down, the logs are localy present and
if the server is compromised and the logs are deleted, there is still 
trace on syslog.

best regards