Log output format

Is there a way to make logs usable? On Ubuntu 23.10 /var/syslog is FULL of chirpstack logs, all escaped as to be essentially unreadable. Any ideas how to fix?

Reference question here Log file format

Example

2024-08-01T17:27:26.038479+00:00 iot chirpstack[4075705]: #033[2m2024-08-01T17:27:26.038334Z#033[0m #033[32m INFO#033[0m #033[1mgRPC#033[0m#033[1m{#033[0m#033[3muri#033[0m#033[2m=#033[0m/api.GatewayService/List#033[1m}#033[0m#033[2m:#033[0m #033[2mchirpstack::api#033[0m#033[2m:#033[0m Finished processing request #033[3mstatus#033[0m#033[2m=#033[0m"200" #033[3mlatency#033[0m#033[2m=#033[0m4.229249ms
2024-08-01T17:27:26.042030+00:00 iot chirpstack[4075705]: #033[2m2024-08-01T17:27:26.041698Z#033[0m #033[32m INFO#033[0m #033[1mgRPC#033[0m#033[1m{#033[0m#033[3muri#033[0m#033[2m=#033[0m/api.ApplicationService/List#033[1m}#033[0m#033[2m:#033[0m #033[2mchirpstack::api#033[0m#033[2m:#033[0m Finished processing request #033[3mstatus#033[0m#033[2m=#033[0m"200" #033[3mlatency#033[0m#033[2m=#033[0m1.919601ms

the journalctl command yields
No journal files were found.

It depends on your system, but you should be able to read logs through journalctl -f -u chirpstack

There is also an option to turn on JSON log output (see configuration file).

Well, no, I just get “No journal files were found”, and trying to reconfigure Ubuntu to conform isn’t trivial.

This is what it takes to make it work with syslog-

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.