Viewing log files containing Linux color codes in Grafana

Hello,
When I view my log file with “cat” command, it looks colored like this:
image

When edited with the nano editor it looks like this:

In Grafana it naturally looks like this:
image

Can I show these logs in color in Grafana too? Or should I only send information such as message, date, level, file with regex expressions when sending with Promtail?

Note: The screenshots are not from the same place in the logs. Therefore, do not make a direct connection between numbers and colors.

hello, does anyone know?

I would also like to know how to display colors. To just remove the color codes from the output you can add “| decolorize” to your query in Grafana.