Code Monkey home page Code Monkey logo

fluent-plugin-systemd's Introduction

systemd input plugin for Fluentd

Build Status Code Climate GPA Gem Version

Overview

systemd input plugin reads logs from the systemd journal

Installation

Simply use RubyGems:

gem install fluent-plugin-systemd

or

fluent-gem install fluent-plugin-systemd

or

td-agent-gem install fluent-plugin-systemd

Configuration

<source>
  type systemd
  path /var/log/journal
  filters [{ "_SYSTEMD_UNIT": "kube-proxy.service" }]
  pos_file kube-proxy.pos
  tag kube-proxy
  read_from_head true
</source>

path

Path to the systemd journal, defaults to /var/log/journal

filters

Array of filters, see here for further documentation, defaults to no filtering.

pos file

Path to pos file, stores the journald cursor. File is created if does not exist.

read_from_head

If true reads all available journal from head, otherwise starts reading from tail, ignored if pos file exists. Defaults to false.

strip_underscores

If true strips underscores from the beginning of systemds field names. May be useful if outputting to kibana, as underscore prefixed fields are unindexed there.

tag

Required the tag for events generated by this input plugin.

Example

For an example of a full working setup including the plugin, take a look at

Dependencies

This plugin depends on libsystemd

Running the tests

To run the tests with docker on several distros simply run rake

For systems with systemd installed you can run the tests against your installed libsystemd with rake test

Licence etc

MIT

Issues and pull requests welcome

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.