Wednesday, March 08, 2023

Re: syslog.conf syntax to specify several clients

On 07/03/2023 06:35, All wrote:

> Hi all,
>
> I have a server that acts as a syslog aggregator
> for several other servers. I was trying to see whether
> clients can be specified on one line but I can't see anything
> regarding syntax for such cases in man pages.
>
> Do we need to specify each client on the separate line?
> Like:
>
Hi, yes you do.
> I tried several kinds of semicolon, comma and plus syntax
> but have not being able to make it work.
> I can only see the very first host (eg. server1) in the log, not others.

From the man page for syslog.conf:

     # Log everything coming from host bastion to a separate file.
     ++bastion
     *.* /var/log/bastion
     +*

Use this block once per server. You should be able to tweak it by
daemon, auth, etc.

Cheers,

Noth

No comments:

Post a Comment