Execute Script Plugin
Plugin v1.0.0 release of graylog-plugin-exec.
An alarm callback plugin for executing a script on Graylog2's server.
Published
23 Apr 04:41
Last Push
23 Apr 04:41
Marketplace Rating
Discussion
7 Comments
Your Rating
Please sign in to rate this add-on.
Comments
If you want pass log message details of the alert as a paremeter,maybe you can download from github,and find file "ExeCommandAlarmCallBack.java",and you can modified function 'call', get infomation from arg0 or arg1 and define your own bashCommand.Then build you own plugin (JAR) with mvn package
Can I set log message,like check_result.resultDescription ,as a parameter ? ths!
Is there any way to pass log message details of the alert as a parameter?
Graylog triggers an alert and it shows that a bash command has benn executed but myscript is not run.
bashCommand: php /root/test.php
Anyone have any feedback on this, or another plugin that might be able to do it? From what I can tell, this plugin can run an arbitrary command from the Graylog server with arguments you pass, but I can't find a way to pass in any information from the events in the stream that create the alert.
Hi,
I would like to know if what we can place in param1, any field of the message trigger ? or just a string by my own hand?
And if can I call any script and not only php?
Regards.
Please sign in to comment.
For anyone still looking, I've packaged a (forked) version of this addon with support for message field arguments: https://github.com/RaceFPV/graylog2-plugin-exec