dfch / biz.dfch.j.graylog2.plugin.output.execscript Goto Github PK
View Code? Open in Web Editor NEWGraylog2 SCRIPT Output Plugin
Home Page: http://d-fens.ch/2015/01/07/howto-creating-a-graylog2-output-plugin/
License: Apache License 2.0
Graylog2 SCRIPT Output Plugin
Home Page: http://d-fens.ch/2015/01/07/howto-creating-a-graylog2-output-plugin/
License: Apache License 2.0
Currently only scripts can be executed by the plugin. However, sometimes it might be favourable to just execute a plain bash/shell script. This could be implemented by specifying bash as the scripting language (instead of something like javascript).
There is a problem with that, as a bash script can only accept command line parameters (and not message objects as it is implemented for scripts). This means all the parameters of a message would have to be supplied as separate command line arguments.
Graylog2 Version 1.0.0 doesn't appear to recognize this plugin. I placed it in the plugin directory, restarted the server, and it doesn't detect it. Other plugins in the same directory work. Do you plan on making this 1.0.0 compatible?
Thanks in advance :)
In dfchBizExecScript.java the variables that hold the scriptEngine and scriptContext are declared as static. this means that the plugin can only be loaded several time when the same script engine and files are used. Furthermore there is not synchronisation on variable access. This should be fixed. Until thenthe plugin should only be loaded once.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.