Git Product home page Git Product logo

syslog-journal's Introduction

What

This little service listens for Syslog packets on network and forwards them to local Systemd journal.

Some configuration is available via command line.

% ./syslog-journal -help

Usage of ./syslog-journal:
    -default-priority int
          Used when priority can't be inferred from message. (default 6)
    -force-priority int
          Overwrite message priority. -1 to pass as is. (default -1)
    -format string
          Fields: ReceiveTime, Timestamp, Addr, Priority, Tag, Content.
          See syntax at https://golang.org/pkg/text/template/
          (default "from={{.Addr}} {{.Tag}}: {{.Content}}")
    -journal-buffer-size int
           (default 32768)
    -listen-udp string
          Empty string to disable. (default ":514")
    -queue-length int
          Store parsed messages in memory before blocking on Journal sending. (default 100)
    -udp-buffer-size int
           (default 16384)

Why

It may be possible to configure rsyslog or syslog-ng to do the same, and I've had success with plain forwarding via rsyslog, but didn't find a way to add source address info. Now with Systemd spread there's no need in full featured syslog server so I think this program is a better replacement for complex configuration.

Contribute

Please send patches to [email protected] or Github https://github.com/temoto/syslog-journal

syslog-journal's People

Contributors

temoto avatar

Watchers

 avatar  avatar

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.