udprint
v1.1.3
Published
💡 Log incoming messages on a UDP socket
Downloads
9
Maintainers
Readme
udprint: UDP Logger
💡 Log incoming messages on a user datagram protocol (UDP) socket
$ npx udprint 8125
interactive
$ udprint -i
Full params
$ udprint 8125 127.0.0.1
↑ ↑
port address
With explicit params you can switch the order
$ udprint --port 8125 --address 127.0.0.1
$ udprint --address 127.0.0.1 --port 8125 --encoding utf8
Params support shorthand
$ udprint -p 8125 -h 127.0.0.1 -e utf8
Get help (full feature list)
$ udprint -h
Encoding can be one of the following:
utf8
(default)ascii
binary
latin1
ucs2
(alias of utf16le)utf16le
hex
base64
Forward traffic to another location
$ udprint -f 127.0.0.1:2003
Clean some of the data from the message, or complete lines:
$ udprint -c '^.*password.*$\n'
Silent mode, in case we're just forwarding messages and don't want to see the output
$ udprint -s
Test
echo "This is some data" > /dev/udp/127.0.0.1/8125