This is a plugin for Logstash.
-
To get started, you'll need JRuby with the Bundler gem installed.
-
You'll also need maven since this plugin also contains Java code which is built using maven
-
Install dependencies
bundle install
- Go to the root path of the Loglens plugin
- Compile the maven project
mvn compile
- Package the maven project
mvn package
- Build your plugin gem
gem build logstash-output-loglens.gemspec
- Install the plugin from the Logstash home
/path/to/logstash/bin/plugin install /your/local/plugin/logstash-output-loglens-0.0.1-java.gem
- Create Logstash config file, e.g.
# a random input... e.g. a file
input {
file {
path => "some file"
}
}
#the config of the loglens output plugin
output {
loglens {
url => "the url"
index => "loglens index"
category => "loglens" # the scribe category
oauth2_token => "your oauth2 bearer token"
is_debug => true # if true it will just print to stdout what it would send
}
}
- Start Logstash and proceed to test the plugin
/path/to/logstash/bin/logstash -f <configfile>