Problem receiving different logs from same IP
Posted: Mon Feb 27, 2017 2:30 pm
Team,
Currently I would like to receive logs from same IP address through different ports in LINUX. I am able to receive only TEST1.out logs. Please advise
99-nagioslogserver.conf:
$ModLoad imfile
$InputFilePollInterval 10
$PrivDropToGroup adm
$WorkDirectory /var/spool/rsyslog
# Input for test1.out
$InputFileName /var/lib/logs/test1.out
$InputFileTag test1_out:
$InputFileStateFile state-test1_out # Must be unique for each file being polled
# Uncomment the folowing line to override the default severity for messages from this file.
#$InputFileSeverity info
$InputFilePersistStateInterval 2000
$InputRunFileMonitor
# Forward to Nagios Log Server and then discard, otherwise these messages will end up in the syslog file (/var/log/messages) unless there are other overriding rules.
if $programname == 'test1_out' then @@***.***.***.**:5550
if $programname == 'test1_out' then ~
# Input for test2_out:
$InputFileName /var/lib/logs/test2.out
$InputFileTag test2_out:
$InputFileStateFile state-test2_out # Must be unique for each file being polled
# Uncomment the folowing line to override the default severity for messages from this file.
#$InputFileSeverity info
$InputFilePersistStateInterval 2000
$InputRunFileMonitor
# Forward to Nagios Log Server and then discard, otherwise these messages will end up in the syslog file (/var/log/messages) unless there are other overriding rules.
if $programname =='test2_out' then @@***.***.***.**:5551
if $programname =='test2_out' then ~
Currently I would like to receive logs from same IP address through different ports in LINUX. I am able to receive only TEST1.out logs. Please advise
99-nagioslogserver.conf:
$ModLoad imfile
$InputFilePollInterval 10
$PrivDropToGroup adm
$WorkDirectory /var/spool/rsyslog
# Input for test1.out
$InputFileName /var/lib/logs/test1.out
$InputFileTag test1_out:
$InputFileStateFile state-test1_out # Must be unique for each file being polled
# Uncomment the folowing line to override the default severity for messages from this file.
#$InputFileSeverity info
$InputFilePersistStateInterval 2000
$InputRunFileMonitor
# Forward to Nagios Log Server and then discard, otherwise these messages will end up in the syslog file (/var/log/messages) unless there are other overriding rules.
if $programname == 'test1_out' then @@***.***.***.**:5550
if $programname == 'test1_out' then ~
# Input for test2_out:
$InputFileName /var/lib/logs/test2.out
$InputFileTag test2_out:
$InputFileStateFile state-test2_out # Must be unique for each file being polled
# Uncomment the folowing line to override the default severity for messages from this file.
#$InputFileSeverity info
$InputFilePersistStateInterval 2000
$InputRunFileMonitor
# Forward to Nagios Log Server and then discard, otherwise these messages will end up in the syslog file (/var/log/messages) unless there are other overriding rules.
if $programname =='test2_out' then @@***.***.***.**:5551
if $programname =='test2_out' then ~