Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

A logstash output plugin to write logs to twitter loglens using thrift over http

Notifications You must be signed in to change notification settings

tellapart/logstash-output-loglens

Repository files navigation

Loglens Logstash Output Plugin

This is a plugin for Logstash.

Documentation

Environment

  • 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

Build and install Gem in Logstash

  • 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

Run the Loglens Logstash plugin

  • 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>

About

A logstash output plugin to write logs to twitter loglens using thrift over http

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published