rsyslog, log msgs in a different file
R C
cjvijf at gmail.com
Sun Feb 18 16:48:59 UTC 2024
On 2/18/24 03:09, Karl Auer wrote:
> 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.
this is in a separate file in "/etc/rsyslog.d", and the only two lines
are the template and the stop
>
>> 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 "*.*"...
right, that was to make it work, to get ir started. I don't know how to
distinguish between remote hosts and the host itself.
>
> Regards, K.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240218/10aaf495/attachment.html>
More information about the ubuntu-users
mailing list