we are trying to call custom code . i have changed my test.sh file , now it
is writing some lines to another file .
test.sh
file = open("newfile.txt", "w")
file.write("hello world in the new file\n")
file.write("and another line\n")
file.close()
problem is how to call any custom code say a python or ruby script from
rsyslog.
we tried it on both version 8.2.1 and 7.6.3 ,but no vain
---------- Forwarded message ----------
From: masoom alam <[email protected]>
Date: Wed, Jun 18, 2014 at 9:05 PM
Subject: Fwd: [rsyslog] OMPROG Problem
To: "[email protected]" <[email protected]>, muhammad zeshan <
[email protected]>
FYI
---------- Forwarded message ----------
From: Rainer Gerhards <[email protected]>
Date: Wed, Jun 18, 2014 at 5:26 PM
Subject: Re: [rsyslog] OMPROG Problem
To: rsyslog-users <[email protected]>
On Wed, Jun 18, 2014 at 2:09 PM, masoom alam <[email protected]> wrote:
> omprog module is not working for us.
>
> we are adding the following code in our rsyslog.conf
>
> module(load="omprog")
> if $rawmsg contains "something" then action(type="omprog"
> binary="/opt/test.sh")
>
>
> test.sh contains simple echo message.
>
>
Note that you do not see stdout, if that is your sole test.
Rainer
>
> Regards
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T
LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.