| Crates.io | socktee |
| lib.rs | socktee |
| version | 0.1.0 |
| created_at | 2022-04-22 14:43:24.991537+00 |
| updated_at | 2022-04-22 14:43:24.991537+00 |
| description | A command line utility to copy UNIX domain socket datagrams from one socket to two other sockets |
| homepage | https://sr.ht/~jpastuszek/socktee/ |
| repository | https://git.sr.ht/~jpastuszek/socktee |
| max_upload_size | |
| id | 572202 |
| size | 32,299 |
A command line utility to copy UNIX domain socket datagrams from one socket to two other sockets.
Features:
Forward copy of syslog messages to remote log server.
# Save syslog messages in a log file
socklog unix /var/run/syslog-local > /var/log/syslog &
# Forward syslog messages to remote log server
socklog unix -R /var/run/syslog-forward | nc -t prod.store.whatclinic.net 514 &
# Copy syslog messages for local storage and forwarding
umask 0000
socktee /dev/log /var/run/syslog-local /var/run/syslog-forward &
# Log a message
logger hello world