Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
/ syslog-journal Public archive

Copy syslog messages from network to systemd journal. Useful when you have remote system that sends messages to syslog over network.

License

Notifications You must be signed in to change notification settings

temoto/syslog-journal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Copy syslog messages from network to systemd journal. Useful when you have remote system that sends messages to syslog over network.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages