Page MenuHomeVyOS Platform

remote syslog does not get all the logs
Closed, ResolvedPublicBUG

Description

I have enabled remote syslog and I do not see logs for example when user does "sudo".

For me it looks like remote syslog does not get all the logs, because rsyslog cfg file include is defined after the filter for CRON, sudo and su is applied.

In /etc/rsyslog.conf this part:

$outchannel auth_log,/var/log/auth.log
if  $programname == 'CRON' or
    $programname == 'sudo' or
    $programname == 'su'
    then :omfile:$auth_log

if $programname == 'CRON' or
    $programname == 'sudo' or
    $programname == 'su'
    then stop

is before:

$IncludeConfig /etc/rsyslog.d/*.conf

and remote syslog server is defined in

/etc/rsyslog.d/00-vyos.conf

Details

Version
VyOS 1.5-rolling-202402120819
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to Needs reporter action.Mar 15 2024, 2:26 PM
Viacheslav triaged this task as Normal priority.
Viacheslav subscribed.

@m.serdienis Add set of configuration commands to reproduce.

Viacheslav changed the task status from Unknown Status to Resolved.Apr 24 2024, 7:25 AM
dmbaturin renamed this task from remote syslog do not get all the logs to remote syslog does not get all the logs.May 11 2024, 7:12 PM
dmbaturin removed a project: VyOS 1.5 Circinus.
dmbaturin changed Is it a breaking change? from Behavior change to Perfectly compatible.
dmbaturin changed Issue type from improvement to Bug (incorrect behavior).