ok, first question, does the script work if you just run it from the command
line?
what distro are you running? (it's possible that SELinux is giving you grief)
David Lang
On Fri, 20 Jun 2014, masoom alam wrote:
Date: Fri, 20 Jun 2014 14:19:55 +0500
From: masoom alam <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: rsyslog-users <[email protected]>
Subject: Re: [rsyslog] Fwd: OMPROG Problem
It is not doing any thing.
Also Rsyslog is not complaining any thing.
On Fri, Jun 20, 2014 at 2:16 PM, David Lang <[email protected]> wrote:
Please clarify your problem
it sounds as if you are saying that your script is sucessfully writing
data, so what is not working?
David Lang
On Fri, 20 Jun 2014, masoom alam wrote:
Any answer?
BTW, most of the forums on the internet has reported this problem. Whether
Rsyslog intend to finish/terminate this feature in the future or what -
thats why they are not interested? Why this is so that some people
reported
problem with specific OS like CentOS? Many people claims that it works
fine
on Ubuntu...we are trying it there now.
In fact the net goal of this exercise for us to see what is the memory
consumption while trying to write external filters in Rsyslog, as opposed
to using Logtash. Logtash in our case has shown memory consumption more
than 50% than that of Rsyslog + MongoDB.
I am waiting for any pointer, any answer. So far we are neither able to
run
any shell script, nor python program. The problem is that control is never
transferred to external program.
Please guide and help!!!!!
On Thu, Jun 19, 2014 at 11:10 AM, Muhammad Asif <[email protected]>
wrote:
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.
_______________________________________________
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.
_______________________________________________
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.