Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```