-
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
Remove dissect tokenizing from Traefik Filebeat Access Fileset #10442
Remove dissect tokenizing from Traefik Filebeat Access Fileset #10442
Conversation
Pushing to see if it's an issue with my local. I have tested the pipeline successfully in ES6 but I couldn't try with ES7 |
jenkins, test this please |
"patterns": [ | ||
"(?:%{NUMBER:http.response.body.bytes:long}|-)( (?:\"%{DATA:http.request.referrer}\"|-)?( (?:\"%{DATA:traefik.access.agent}\"|-)?)?( (?:%{NUMBER:traefik.access.request_count:long}|-)?)?( (?:\"%{DATA:traefik.access.frontend_name}\"|-)?)?( \"%{DATA:traefik.access.backend_url}\")?( %{NUMBER:temp.duration:long}ms)?)?" | ||
"%{IPORHOST:source.address} %{GREEDYDATA:traefik.access.user_identifier} %{GREEDYDATA:user.name} \\[%{HTTPDATE:traefik.access.time}\\] \"%{WORD:http.request.method} %{DATA:url.original} HTTP/%{NUMBER:http.version}\" %{NUMBER:http.response.status_code:long} (?:%{NUMBER:http.response.body.bytes:long}|-)?( (?:\"%{DATA:http.request.referrer}\"|-)? (?:\"%{DATA:traefik.access.agent}\"|-)? (?:%{NUMBER:traefik.access.request_count:long}|-)? (?:\"%{DATA:traefik.access.frontend_name}\"|-)? (?:\"%{DATA:traefik.access.backend_url}\"|-)?( %{NUMBER:temp.duration:long}ms|-)?)?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the dissect processor here as we did in Filebeat for the first part: https://www.elastic.co/guide/en/elasticsearch/reference/master/dissect-processor.html It's more efficient then grok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, fixed adding a dissect processor at the top of the pipeline
24c3d9f
to
dd35952
Compare
jenkins, test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. CI failure is not related and fixed in an other PR.
Solves: #9434
I had a problem as I couldn't make it work with ES7 and I struggling to make it work in ES6 because in ES6 we use
int
as type for many Grok patterns but in ES7 we uselong
. It seems thatlong
is detected as astring
in ES6 and it was giving many troubles.The problem trying to test this in ES7 is that it just gets frozen and, reviewing logs the only clue is a message saying:
Malformed [mappings] section for type [date_detection], should include an inner object describing the mapping