turnstone/scripts/turnstone-syslog-receiver.service
pyr0ball a4ec5a6951 feat: add UDP syslog receiver for network device log collection
scripts/syslog_receiver.py: asyncio UDP server listening on port 5140,
appends raw syslog lines to network-syslog.txt for the Turnstone live
watcher to tail. Requires no root — port 5140 is non-privileged.

scripts/turnstone-syslog-receiver.service: systemd unit for auto-start.

app/ingest/syslog.py: strip optional RFC 3164 <PRI> prefix before
parsing so network-forwarded syslog (OpenWRT logd, Arista EOS, etc.)
is handled correctly without the PRI value breaking the regex.
2026-05-13 04:58:51 -07:00

19 lines
575 B
Desktop File

[Unit]
Description=Turnstone — UDP syslog receiver (network devices → network-syslog.txt)
Documentation=https://git.opensourcesolarpunk.com/Circuit-Forge/turnstone
After=network.target
[Service]
Type=simple
ExecStart=/devl/miniconda3/envs/cf/bin/python \
/Library/Development/CircuitForge/turnstone/scripts/syslog_receiver.py \
--port 5140 \
--output /devl/turnstone-cluster/data/network-syslog.txt
Restart=on-failure
RestartSec=5s
StandardOutput=journal
StandardError=journal
SyslogIdentifier=turnstone-syslog-receiver
[Install]
WantedBy=multi-user.target