Can you tell me how to remove the highlighting when filtering logs? It didn’t work for me. I have this request
{container_name="traefik"} | logfmt |= "request denied"
The output is
Can you tell me how to remove the highlighting when filtering logs? It didn’t work for me. I have this request
{container_name="traefik"} | logfmt |= "request denied"
The output is
Couple of options, you can use regexp and split the log lines into three parts, and then combine afterwards. You can also use template plus replace function.
Example using regex:
{SELECTOR} | regexp `^(?P<part1>.*) request denied (?P<part2>.*)$` | line_format "{{.part1}} {{.part2}}"
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.