rexlx / redir

redirects stdout to a remote logging service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

redirects stdout to a remote logging service

License:MIT License


Languages

Language:Go 100.0%