Skip to content
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

Merged

Conversation

sayden
Copy link
Contributor

@sayden sayden commented Jan 30, 2019

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 use long. It seems that long is detected as a string 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

@sayden sayden added enhancement Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Jan 30, 2019
@sayden sayden self-assigned this Jan 30, 2019
@sayden sayden requested a review from ruflin January 30, 2019 22:09
@sayden sayden requested a review from a team as a code owner January 30, 2019 22:09
@sayden
Copy link
Contributor Author

sayden commented Jan 30, 2019

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

@sayden sayden added Filebeat Filebeat and removed Metricbeat Metricbeat labels Jan 31, 2019
@sayden
Copy link
Contributor Author

sayden commented Jan 31, 2019

jenkins, test this please

CHANGELOG.next.asciidoc Outdated Show resolved Hide resolved
"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|-)?)?"
Copy link
Member

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.

Copy link
Contributor Author

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

@sayden sayden force-pushed the feature/fb/remove-config-pipelining-from-traefik branch from 24c3d9f to dd35952 Compare January 31, 2019 19:51
@sayden
Copy link
Contributor Author

sayden commented Feb 1, 2019

jenkins, test this please

Copy link
Member

@ruflin ruflin left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Filebeat Filebeat Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants