duplicate message log when use NFS and rsyslog

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: duplicate message log when use NFS and rsyslog

Post by sacom01 »

yes i did, restarted and pushed log bro
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: duplicate message log when use NFS and rsyslog

Post by cdienger »

What OS is running rsyslog and what version of rsyslog? I can find bugs regarding duplicate messages from rsyslog so you may need to upgrade it to get a fix.

Is there anything more to the configuration other than what was posted? Typically there is more in the the rsyslog.conf file and often times it will try to load configuration files from /etc/rsyslog.d/ as well.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: duplicate message log when use NFS and rsyslog

Post by sacom01 »

hi bro,
Only one conf file have been used to push log.
pls find attach file.

We using AIX 7.2
bash-4.3# oslevel -s
7200-00-01-1543
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: duplicate message log when use NFS and rsyslog

Post by cdienger »

Thanks for the info. At this point I would try changing the configuration to just send a single file. For example:

Code: Select all

$ModLoad imfile
$InputFileName /logbk/runtime.log
$InputFileTag runtime:
$InputFileStateFile /tmp/runtime
$InputFileSeverity info
$InputFileFacility local2
$InputRunFileMonitor
$InputUDPServerKeepalive on

template (name="TraditionalFormat" type="string" string="%msg%\n")
local2.* @192.168.xxx.xx:5050;TraditionalFormat
and if that works, create another rsyslog.conf to process another of the logs, and so forth.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sacom01
Posts: 194
Joined: Wed Dec 23, 2020 10:15 pm

Re: duplicate message log when use NFS and rsyslog

Post by sacom01 »

hi bro,
we have to change to use GPFS instead NFS, and do not facing with this issue anymore.
thanks for your support. pls close the ticket
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: duplicate message log when use NFS and rsyslog

Post by scottwilkerson »

sacom01 wrote:hi bro,
we have to change to use GPFS instead NFS, and do not facing with this issue anymore.
thanks for your support. pls close the ticket
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked