Syslog - How to Show Colorized Messages? Syslog - How to Show Colorized Messages? bash bash

Syslog - How to Show Colorized Messages?


syslog escapes the ansi color codes by default [1]. To enable add the following to the /etc/rsyslog.conf

$EscapeControlCharactersOnReceive off

Then restart rsyslog and your service.

$ systemctl restart rsyslog$ systemctl restart my_color_service