Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Ok, so i need syslog to log to a fifo with a specific template for the log in mind.

So I set my destination as follows...

destination d_pipe { pipe("/var/run/some_pipe.fifo"); };

This works fine and all of the logs come through nicely. However when I try to apply a template to it, I get nothing at all in the fifo.

destination d_pipe { pipe("/var/run/some_pipe.fifo" template("$HOST $SOURCEIP $MSG") template-escape(no));};

any ideas?

share|improve this question

1 Answer 1

did you try to change $MSG to $MESSAGE ? ;p

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.