sonic-buildimage/files/image_config/rsyslog
Stephen Sun 610685d27b
Do not pass the option "device" in rsyslog.conf by default when syslog server's source address is configured (#17616)
### Why I did it

An in-band syslog server will not receive any syslog if it is configured without a VRF specified, which is because `eth0` is always specified as the `device` of a syslog server and the syslog packets will be sent to `eth0` regardless of its destination IP address.

### How I did it

Pass the option "device" in rsyslog.conf only if when syslog server's source address is configured with a non-default VRF

#### How to verify it

Manually test:
1. Configuring a syslog server without VRF specified or with `default` as the VRF: no `device` passed in `rsyslog.conf`
2. Configuring a syslog server with non-default VRF: the configured VRF passed as `device` in `rsyslog.conf`
2024-03-23 17:04:00 -07:00
..
rsyslog.d Disable eventd and rsyslog plugin in slim images (#17905) 2024-01-30 22:14:23 -08:00
rsyslog-config.service Remove UpdateGraphService feature (#18330) 2024-03-14 13:12:26 -07:00
rsyslog-config.sh Add remote syslog configuration (#14513) 2023-07-10 11:40:08 -07:00
rsyslog-container.conf.j2 Optimize syslog rate limit feature for fast and warm boot (#17458) 2023-12-20 09:12:03 +02:00
rsyslog.conf.j2 Do not pass the option "device" in rsyslog.conf by default when syslog server's source address is configured (#17616) 2024-03-23 17:04:00 -07:00