-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can’t parse haproxy logs #25827
Comments
I have the same error. I tried also to upgrade filebeat to 7.12.1 version and copy your pipline.json. |
how did you test the changes? I would install the latest filebeat and then update that pipeline with the changes above. I added the sample log that you provided in the ticket. If there are other logs that don't work let me know. |
@maarsaks can you provide more details on what didn't work. I added ur sample log to the tests and it parsed properly. |
I've tested on docker images with docker-compose using the latest, fresh version of filebeat.
I'm using Kibana to filter logs and there's is an error: 'Provided Grok expressions do not match field value'. |
How did you update the pipeline? Is the log thats having the issue the same that I added to the sample data?? |
I updated pipeline by replacing default config with yours in a new, freshly installed filebeat under
Yes. |
|
Yup, it loaded and this is the message from ES:
|
Hmm, IDK. Here, https://github.com/elastic/beats/pull/25835/files#diff-8363329fdb5b538e99f1112198aaa68d0a353c161a49f26a1041f6f49ae47cfdR63, you can see that the sample log is the same as u provided and is being parsed properly. |
And that's the problem. Like I said in my first comment the pattern is working in Grok debugger, but it doesn't display correctly in Kibana. |
I've created the repo how to reproduce the error in ~5 minutes - make sure that you've made the all steps from |
I'm looking at your pipeline file, you file doesn't have any of the changes that I made in the PR. What are you basing that file off of? This is the file you should copy, https://github.com/elastic/beats/blob/5582e6ccfddd152e4bcf4141361d6a0e0b1e4daa/filebeat/module/haproxy/log/ingest/pipeline.yml. |
Okay, I've updated the repo with the |
So looking at the repo u created I found some issues.
As such your test isn't actually loading the new pipeline. Please validate that the correct pipeline is loaded by going to the ingest pipelines page under stack management in Kibana and look at the HAProxy pipeline. The way I would test this change is load ES, Kibana, and Filebeat normally without any modifications. Manually update the pipeline using the API in dev tools, validate the changes using the API or ingest pipeline page and then ingest data. |
@maarsaks we're u able to retest again? If we don't hear anything we're going to go ahead and merge the changes as they pass all the tests with the log samples you provided. |
Thank you. But there's more :/
|
So the module isn't setup to parse the first half of those logs, the server/status messages. As for the 2nd half, they look like they're the same as what I just added so I can take a quick look. |
These logs parsed no problem. I think a separate discussion should be have for the other logs. I'm going to recommend that we merge the PR. |
Pinging @elastic/integrations (Team:Integrations) |
* #25827: Update HA Proxy log grok patterns * update changelog * add more sample data
I created Grok pattern which works in Kibana Debug Grok devtool:
Sample data:
Grok pattern:
Custom patterns:
Structured data:
First I thought that something else causes the problem: discuss.elastic.co
But the pattern is working, and I don't know why. but it doesn't work with Filebeat and Elastic.
I have an error in Elastic:
That's my current config file: gist.github.com
The text was updated successfully, but these errors were encountered: