Loki exclude hostname in nginx logs

The first element of our nginx logs contains client IP address (ie: hostname).

How can I configure promtail to exclude this first data element and only send the rest of the log line to loki?

192.168.1.112 - TEST [2021-10-04T19:09:09+00:00] “POST /data/1034 HTTP/1.1” 200 2792 0 “-” 0.334 0.332 “locust” “-” “192.168.152.127:443” “example.com

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