Hello, I have used the method of sending logs to a file in /var/log/xxx.log via rsyslog in several cases. However, the logs are always saved both to the newly defined log file and to syslog at the same time.
I tried to solve this directly by configuring /etc/rsyslog.conf
# Filter messages by IP address 18.25.233.22 and save to /var/log/barracuda.log
if $fromhost-ip == '18.25.233.22' then /var/log/barracuda.log
& stop
# General configuration for other messages
if $fromhost-ip != '18.25.233.22' then /var/log/syslog
Even so, logs from the defined host are still stored in syslog.
Can someone please advise?
Translated with
www.DeepL.com/Translator (free version)
Dne čtvrtek 20. června 2024 v 7:59:40 UTC+2 uživatel Kobrik Kobrikovic napsal: