[plug] Pipe into logger duplicates in /var/log/messages on CentOS

Alexander alex at j2anywhere.com
Tue Mar 4 08:35:06 UTC 2014

Hi all,

I did some more digging. On a clean install of CentOS the issue does not
happen. So it is most likely something the I changed at some point in
the past.

echo ‘HI” | logger -t test

I should have been using the pipe rather then redirection in my example.

Anyhow, even using the pipe symbol still duplicates the messages going
into /var/log/messages. Any pointers to investigate and resolve this ?


On 28/02/14 15:19, Alexander Hartner wrote:
> Hi all
> I am trying to pipe the output from a process into syslog using the logger command. Initially I pipe the output into a separate file, but as it happens this filled up the disk when things went wrong. So I figured I redirect the output to syslog and let logrotate deal with the roll-over and archive of the file.
> However the following command :
> echo ‘HI” > logger -t test
> Resulted in the message appearing twice in /var/log/messages on my CentOS 6 system. I tested it on Gentoo as well where it behaved correctly, only showing a single message.
> Any pointers on why CentOS duplicates these messages.
> Alex
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://lists.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.org.au
> PLUG Membership: http://www.plug.org.au/membership

More information about the plug mailing list