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

MySQL 5.7.26 slow log parsing #29696

Closed
adamjacobmuller opened this issue Jan 4, 2022 · 2 comments
Closed

MySQL 5.7.26 slow log parsing #29696

adamjacobmuller opened this issue Jan 4, 2022 · 2 comments
Labels
Stalled Team:Integrations Label for the Integrations team

Comments

@adamjacobmuller
Copy link

Hi,

I'm trying to use filebeat to parse a MySQL slow log, but, having issues with the pipeline not extracting fields and I think it's because the grok pattern doesn't match...

an example slowlog entry is:

# Query_time: 0.049540  Lock_time: 0.000188 Rows_sent: 1  Rows_examined: 10001
SET timestamp=1641329111;
select * from files limit 10000,1;

and using the pattern from this repo in this online grok testing tool it seems like it doesn't match:

grokconstructor output

it seems like it fails matching Id: 8 which is confusing as that should match with (Id:%{SPACE}%{NUMBER:mysql.thread_id:long}%{METRICSPACE})? which is the next item in the pattern.

This seems related to beats#7892 where a similar problem occurred with a MySQL change to 5.7.22. We are running 5.7.26 and I'm assuming MySQL changed something again which caused the issue.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 4, 2022
@ChrsMark ChrsMark added the Team:Integrations Label for the Integrations team label Jan 10, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 10, 2022
@botelastic
Copy link

botelastic bot commented Sep 21, 2023

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Sep 21, 2023
@botelastic botelastic bot closed this as completed Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stalled Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

3 participants