rsyslog, log msgs in a different file
R C
cjvijf at gmail.com
Sun Feb 18 07:57:25 UTC 2024
I have it working,
it didn't like the 'stop' in the script
***
$template NetworkLogs,"/var/log/network/%HOSTNAME%-messages.log"
*.* ?NetworkLogs
#& stop
***
However, now it is logging thelocalhost as if it is a remote host too.
I'd don't really like that
Ron
On 2/18/24 00:28, Karl Auer wrote:
> On Sun, 2024-02-18 at 18:08 +1100, Karl Auer wrote:
>> Put your stanza in a file in /etc/rsyslog.conf with a two-digit
>> prefix so it sorts before the default rules
> Sorry, I meant "in /etc/rsyslog.d" of course!
>
> Regards, K.
>
More information about the ubuntu-users
mailing list