diff options
author | Christian Hesse <mail@eworm.de> | 2018-06-07 12:26:17 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-06-07 12:26:17 +0200 |
commit | c1c29fb03a24244c1a725213aadaa38764f24f6a (patch) | |
tree | b0020ea82136ace1a4d8292be1eadb0ca922a1f3 | |
parent | 6e2bd84a0c753be4e99c1389d6136fb0e1cedf1b (diff) | |
download | udp514-journal-c1c29fb03a24244c1a725213aadaa38764f24f6a.tar.gz udp514-journal-c1c29fb03a24244c1a725213aadaa38764f24f6a.tar.zst |
give hint about viewing the logs
-rw-r--r-- | README.md | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -31,9 +31,23 @@ Usage ----- Just run `udp514-journal` or start a systemd unit with -`systemctl start udp514-journal`. +`systemctl start udp514-journal`. Make sure UDP port 514 is not blocked +in your firewall. -Make sure UDP port 514 is not blocked in your firewall. +Use `journalctl` to view the logs: + + $ journalctl -u udp514-journal + Jun 07 08:15:22 server 10.0.0.1[548]: dhcp,info mikrotik1: intern assigned 10.0.0.50 to 00:11:22:33:44:55 + Jun 07 09:16:59 server 10.0.0.1[548]: interface,info mikrotik1: en7 link down + Jun 07 09:17:17 server 10.0.0.1[548]: interface,info mikrotik1: en7 link up (speed 100M, full duplex) + Jun 07 10:07:16 server 10.1.1.1[548]: wireless,info mikrotik2: 00:11:22:33:44:66@wl2-guest: connected, signal strength -36 + Jun 07 10:07:21 server 10.1.1.1[548]: dhcp,info mikrotik2: guest assigned 192.168.1.50 to 00:11:22:33:44:66 + +Filtering is available with matching `SYSLOG_IDENTIFIER` the ip address: + + $ journalctl -u udp514-journal SYSLOG_IDENTIFIER=10.1.1.1 + Jun 07 10:07:16 server 10.1.1.1[548]: wireless,info mikrotik2: 00:11:22:33:44:66@wl2-guest: connected, signal strength -36 + Jun 07 10:07:21 server 10.1.1.1[548]: dhcp,info mikrotik2: guest assigned 192.168.1.50 to 00:11:22:33:44:66 ### Upstream |