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.

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
add comment

1 Answer

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
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 4 '10 at 13:14
add comment

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.