Hi all! Please tell me, I've been suffering for a week now, I can't configure mtail to download from haproxy. When debugging writes
mtail -one_shot -logtostderr -progs /etc/mtail/haproxy.mtail -logs /var/log/haproxy.log
(used both 54 and 24 version)
I0502 14:15:59.380543 430179 checker.go:254] capture group reference `hostname' at haproxy.mtail:14:3-128 appears to be unused
I0502 14:15:59.380583 430179 checker.go:254] capture group reference `application' at haproxy.mtail:14:3-128 appears to be unused
I0502 14:15:59.380594 430179 checker.go:254] capture group reference `pid' at haproxy.mtail:14:3-128 appears to be unused
I0502 14:15:59.380603 430179 checker.go:254] capture group reference `application' at haproxy.mtail:14:3-128 appears to be unused
I0502 14:15:59.380611 430179 checker.go:254] capture group reference `pid' at haproxy.mtail:14:3-128 appears to be unused
In general, mtail works, but deduces such metrics from usefulness
mtail_vm_line_processing_duration_seconds_bucket
mtail_vm_line_processing_duration_seconds_count
mtail_vm_line_processing_duration_seconds_sum
Mtail is run like this sudo mtail -progs /etc/mtail/haproxy.mtail -logs /var/log/haproxy.log
My log-format
log-format %ci:%cp\ [%t]\ %ft\ %sslv\ %b/%s\ %Tq/%Tw/%Tc/%Tr/%Tt\ %ST\ %B\ %U\ %CC\ %CS\ %tsc\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq\ %hr\ %hs\ %{+Q}r
Example logs:
May 2 13:53:25 test haproxy[402508]:
192.168.1.131:13677 [02/May/2023:13:53:25.221] stats - stats/<NOSRV> 0/-1/-1/-1/0 503 221 129 - - SC-- 1/1/0/0/0 0/0 "GET / HTTP/1.1"
May 2 13:53:25 test haproxy[402508]:
192.168.1.131:13678 [02/May/2023:13:53:25.223] stats - stats/<NOSRV> 0/-1/-1/-1/0 503 221 129 - - SC-- 1/1/0/0/0 0/0 "GET / HTTP/1.1"
May 2 13:53:25 test haproxy[402508]:
192.168.1.131:13679 [02/May/2023:13:53:25.225] stats - stats/<NOSRV> 0/-1/-1/-1/0 503 221 129 - - SC-- 1/1/0/0/0 0/0 "GET / HTTP/1.1"
May 2 13:53:25 test haproxy[402508]:
192.168.1.131:13680 [02/May/2023:13:53:25.227] stats - stats/<NOSRV> 0/-1/-1/-1/0 503 221 129 - - SC-- 1/1/0/0/0 0/0 "GET / HTTP/1.1"
Thank you all in advance for your replies!