rsyslog, log msgs in a different file

Karl Auer kauer at biplane.com.au
Mon Feb 19 01:29:48 UTC 2024


On Sun, 2024-02-18 at 17:40 -0700, R C wrote:
> actually,  what I ended up doing is check the ip address, and  use
> that to move themessages to a specific file.

You can invert an operation with "!". Maybe you could identify your
remotes with something like "!isequal 127.0.0.1"? Or identify uor local
host with "isequal 127.0.0.1".

That way, one rule neatly grabs everything that isn't (or is) local,
and your other rules then distribute the rest.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer





More information about the ubuntu-users mailing list