Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rexlx/redir
redirects stdout to a remote logging service
https://github.com/rexlx/redir
Last synced: 23 days ago
JSON representation
redirects stdout to a remote logging service
- Host: GitHub
- URL: https://github.com/rexlx/redir
- Owner: rexlx
- License: mit
- Created: 2023-10-01T17:34:14.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-20T15:38:51.000Z (9 months ago)
- Last Synced: 2024-04-20T11:58:32.623Z (7 months ago)
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redir
```
rxlx@rxlx-m2 ~ % redir -h
Usage of redir:
-id string
ID to use in the syslog message (default "redir")
-proto string
Protocol to use to send the data (default "udp")
-size int
Size of the chunk to read from stdin (default 1024)
-url string
URL of the syslog server (default "storage.nullferatu.com:514")
-verbose
Verbose mode# examples
iostat 5 5000 | redir -id $(hostname)
cat /proc/cpuinfo | redir -url 192.168.86.10:514 -size 4096# be careful with this one hehe
tcpdump -vvv -nn not tcp port 22 | /Users/rxlx/bin/redir -id $(hostname) -size 2048
```