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)
<45>60: *Mar 5 19:57:06.735: %SYS-5-CONFIG_I: Configured from console by console<45>61: *Mar 5 19:57:32.651: %SYS-5-CONFIG_I: Configured from console by console<45>62: *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?