tcpdump and syslogd

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
ikwyl6
DD-WRT Novice


Joined: 23 Apr 2013
Posts: 43

PostPosted: Sun Jan 09, 2022 0:04    Post subject: tcpdump and syslogd Reply with quote
Can tcpdump be redirected to syslogd so the output/log of tcpdump is sent to a syslog server on another machine?
_________________
[ NetGear R7000 : DD-WRT v3.0-r47581 std (10/20/21) - Local dnsmasq with caching using syslogd to send logs to remove server
TP-Link Archer C5 Stock Firmware
TP-Link Archer A9 Stock Firmware - Not Being Used ]
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Sun Jan 09, 2022 6:12    Post subject: Reply with quote
Code:
tcpdump | logger


P.S. If you want both stdout and stderr to the log ...

Code:
tcpdump 2>&1 | logger

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
ikwyl6
DD-WRT Novice


Joined: 23 Apr 2013
Posts: 43

PostPosted: Tue Jan 11, 2022 23:58    Post subject: Reply with quote
Ah didn't even know about logger. I'll try to install tcpdump and logger from Entware and give that a try.
_________________
[ NetGear R7000 : DD-WRT v3.0-r47581 std (10/20/21) - Local dnsmasq with caching using syslogd to send logs to remove server
TP-Link Archer C5 Stock Firmware
TP-Link Archer A9 Stock Firmware - Not Being Used ]
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14222
Location: Texas, USA

PostPosted: Wed Jan 12, 2022 0:36    Post subject: Reply with quote
Why would you need to install logger?

Code:
root@TL-WA901ND v2:~# which logger
/usr/bin/logger

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum