Netcat listener: Line break between syslog messages
0
votes
1
answer
2353
views
I am playing with
netcat
command. On this linux system, I have set up a netcat listener on UDP 514, so that I get to see syslog messages from remote systems.
$ sudo nc -v -ulp 514
listening on [::]:514 ...
connect to 192.168.20.252:514 from (null) ([::ffff:192.168.20.5]:58904)
60: *Mar 5 19:57:06.735: %SYS-5-CONFIG_I: Configured from console by console61: *Mar 5 19:57:32.651: %SYS-5-CONFIG_I: Configured from console by console62: *Mar 5 20:10:10.127: %SYS-5-CONFIG_I: Configured from console by console
The logs are coming through, but there is no line break between events. I need a line break between events. The terminal output is enough and no need to store the logs. While the logs are not uniform, how can I achieve this?
Asked by Bruce Malaudzi
(1655 rep)
Mar 5, 2021, 08:14 PM
Last activity: May 7, 2025, 11:03 AM
Last activity: May 7, 2025, 11:03 AM