Not able to remove last message repeated 2 times

Issues related to applications and software problems
Post Reply
Anju Singh
Posts: 14
Joined: 2018/12/06 03:48:59

Not able to remove last message repeated 2 times

Post by Anju Singh » 2019/03/26 02:25:42

Hi,

I have a SYSLOG SERVER and I dont want "last message repeated 2 times" message. i want the original message to repeated. Below are the methods i tried and none of them worked -
(i)add -e to RSYSLOGD_OPTIONS in /etc/sysconfig/rsyslog
(ii)Using global directive $RepeatedMsgReduction on
(iii)Even using :msg, contains, "last message repeated" /var/log/messages stop

None of the above methods worked.
Can anybody help me with this ?

the version of rsyslog used is - 7.4.7

MartinR
Posts: 714
Joined: 2015/05/11 07:53:27
Location: UK

Re: Not able to remove last message repeated 2 times

Post by MartinR » 2019/03/26 08:54:25

Not sure if this will help, but:

I'm running the latest CentOS 7 and the rsyslog version is 8.24.0-34, so a major release past what you are doing, If you load the rsyslog-doc package you get a set of HTML manuals for rsyslog, one of which file:///usr/share/doc/rsyslog-8.24.0/html/configuration/modules/pmlastmsg.html specifically handles this point. I'm sure if you search on line there will be a public version somewhere. Basically, there is a replacement input module which is supposed to deal with exactly this case, and which has apparently been available since 5.5.6, so there ought to be an appropriate module for you somewhere.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Not able to remove last message repeated 2 times

Post by TrevorH » 2019/03/26 09:29:40

If you're using rsyslog 7.4.7 then you are massively out of date and need to run yum update ASAP. We have not shipped rsyslog 7.4.7 since CentOS 7.3 when it was rebased to 8.24. If you still have 7.4.7 then your system is more than 2.5 years out of date.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply