Skip to content

pgrangelgo/logstash-input-journald

This branch is 7 commits ahead of, 4 commits behind logstash-plugins/logstash-input-journald:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cae1667 · Mar 6, 2019

History

54 Commits
Apr 20, 2016
May 31, 2017
Apr 6, 2018
Nov 6, 2018
Dec 10, 2014
Dec 10, 2014
Oct 27, 2017
Apr 6, 2018
May 31, 2017
Jan 8, 2018
Mar 4, 2016
Dec 10, 2014
Mar 6, 2019

Repository files navigation

logstash-input-journald

POC systemd journal Logstash input

Example config

input {
     journald {
       lowercase => true
       seekto => "head"
       thisboot => true
       type => "systemd"
       tags => [ "coreos" ]
     }
}

output {
  stdout {codec => rubydebug}
}

Install with

From source

git clone https://github.com/logstash-plugins/logstash-input-journald.git
cd logstash-input-journald
gem build logstash-input-journald.gemspec
sudo /path/to/logstash/bin/plugin install /path/to/git/logstash-input-journald/logstash-input-journald-*.gem

From rubygems

sudo /path/to/logstash/bin/plugin install logstash-input-journald

Sincedb

This plugin creates a sincedb in your home, called .sincedb_journal. It automatically stores the cursor to the journal there, so when you restart logstash, only new messages are read. When executing the plugin the second time (which means the sincedb exists), seekto, and thisboot are ignored. If you don't want the sincedb, configure it's path to /dev/null. Tips

Ensure the user you are running logstash as has read access to the journal files /var/log/journal/*/*

Issues

Killing the logstash process takes a long time...

About

Logstash input plugin for journald

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 87.1%
  • Shell 12.9%