8000 GitHub - cechevarne/graylog2-gem: Proof of concept: access graylog2's data from ruby via a gem
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cechevarne/graylog2-gem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a quick hack that allows you to access the Graylog2 data that is stored in a local ElasticSearch instance via a gem, so that you can regularly archive statistics of your streams and so on.

We use this at Spaceship for exactly that.

We basically wrapped part of Graylog2's model classes (MessageGateway and some dependencies) in a module. Credits for this code belongs to Lennart Koopmann et al.

Usage Example

require "graylog2"

total_logins = Graylog2::MessageGateway.all_by_quickfilter({
  :message=>'"login successful"'
},1).total_result_count

About

Proof of concept: access graylog2's data from ruby via a gem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
2AAD
0