Closed
Description
I have haproxy from debian repo, version 1.5.8. Log conf is:
global
log /dev/log local0
log /dev/log local1 notice
Filebeat haproxy module is configured as follow:
- module: haproxy
http:
enabled: true
var.input: "file"
var.paths: ["/var/log/haproxy.log"]
a typical log line (heartbeat from a monitoring tool):
Sep 13 10:43:45 serv haproxy[666]: 1.1.1.1 - - [13/Sep/2018:08:43:45 +0000] "HEAD / HTTP/1.0" 301 93 \"\" \"\" 10976 \828 "https" "https" "<NOSRV>" \0 -1 -1 -1 0 LR-- 1 1 \0 0 0 0 0 "" "" \
a real line that fetch real data from a backend server
Sep 13 10:43:21 serv haproxy[666]: 52.XX.53.XX - - [13/Sep/2018:08:43:21 +0000] "GET /this/is/a/path HTTP/1.1" 401 248 \"\" \"\" 31006 \709 "https~" "vm-myvm" "<NOSRV>" \-1 -1 -1 -1 194 PR-- 1 1 \0 0 3 0 0 "" "" \
This produce a grok error in elasticsearch. Since I'm using "default" logging in haproxy, I found weird that I got error from Grok.
- Version: from master@0a20f580519dc86232b7f854f7acb88220034a7c
- Operating System: Linux
- Discuss Forum URL: https://discuss.elastic.co/t/haproxy-module-with-master-version/148094
- Steps to Reproduce: setup filebeat from master (
go get
,cd
andmake
)