rsyslog, log msgs in a different file
Karl Auer
kauer at biplane.com.au
Sun Feb 18 10:09:36 UTC 2024
On Sun, 2024-02-18 at 00:57 -0700, R C wrote:
> it didn't like the 'stop' in the script
Well, that's weird. It's probably worth figuring out what's going on
with that...
> $template NetworkLogs,"/var/log/network/%HOSTNAME%-messages.log"
> *.* ?NetworkLogs
> #& stop
Is this in a separate file in "/etc/rsyslog.d", or in the main file? If
the former, what is the filename? If the latter, post the whole file.
> However, now it is logging thelocalhost as if it is a remote host
> too. I'd don't really like that
How is it supposed to tell one set of logging entries (that you want in
your network logs) from all the other logging entries (that you don't
want in your network logs)? It needs something to discriminate on, and
your current selector is "*.*"...
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
More information about the ubuntu-users
mailing list