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 ~
Problem receiving different logs from same IP
Re: Problem receiving different logs from same IP
Can you share the output of the following commands executed from the CLI of your Nagios Log Server machine:
Code: Select all
netstat -an | grep 5550
netstat -an | grep 5551
iptables -S
grep '' /usr/local/nagioslogserver/logstash/etc/conf.d/*
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Problem receiving different logs from same IP
I have attached the outputs
You do not have the required permissions to view the files attached to this post.
Re: Problem receiving different logs from same IP
I am able to see that my port is established in logstash. and please find the requested output attached herewith.
Thanks
Thanks
You do not have the required permissions to view the files attached to this post.
Re: Problem receiving different logs from same IP
Do you see anything shown in a tcpdump about data being received?
Former Nagios Employee
Re: Problem receiving different logs from same IP
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up or has the issue otherwise been resolved?
Former Nagios employee
Re: Problem receiving different logs from same IP
Issue is resolved.. Thanks for your support.