0

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.

RC1140
  • 185
  • 1
  • 1
  • 8

1 Answers1

0

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.

Mark Wagner
  • 18,019
  • 2
  • 32
  • 47
  • 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
  • 1
    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 04 '10 at 13:14