Skip to content

Instantly share code, notes, and snippets.

@benleb
Created November 1, 2019 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benleb/9f1a014eda0ed59f013bced7fdd8a660 to your computer and use it in GitHub Desktop.
Save benleb/9f1a014eda0ed59f013bced7fdd8a660 to your computer and use it in GitHub Desktop.
Poor man's syslog2journald service
[Unit]
Description=Syslog UDP proxy via socat
After=network.target
[Service]
Restart=on-success
ExecStart=/usr/bin/systemd-cat --identifier=syslog-udp /usr/bin/socat -u UDP-RECV:514,bind=10.0.0.10 STDOUT
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment