Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I currently have a rsyslog server running on ubuntu that is inserting into a db , this is all fine but I want to do some processing before the insert , I have a script that can do the formatting me but im not sure how to i direct rsyslog to send it to the script.

share|improve this question

You can have rsyslog send it to an executable by using a shell execute "^" action. However, at that point the script must insert it into the DB as rsyslog does no more processing. Otherwise, you could attempt to use rsyslog's limited "property replacer" language to define a template to do whatever formatting you want.

share|improve this answer
I have already tried that , specifically I am calling a python script and it does not seem to be calling the script – RC1140 Jul 29 '10 at 19:21
Post a simple test rsyslog.conf and Python script, so we can help you figure out the problem. rsyslog can do this. – Matthew Flaschen Aug 4 '10 at 13:14

Your Answer


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.