-
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
[Filebeat PostgreSQL] Query Duration Overview dashboard has spurious query #20321
Comments
Created a PR here: #20322 |
Pinging @elastic/integrations (Team:Integrations) |
Hey @EthanStrider, thanks for reporting, and sorry for the late reply. I have found this problem while working on elastic/integrations#747, and I think that this is related to how postgresql logs statements. It has two ways of doing it, that can be configured with the following options:
When statements are logged because of For example in the following case, the second duration corresponds to the first query, you need to check the pid to know what is the duration of each query, something that cannot be handled at the moment by Filebeat. Filebeat collects these lines as normal logs, without extracting any info, and thus
On the other hand, when statements are logged because of
So I think there are two things that should be done to improve this situation:
I don't think that removing the filter in this dashboard will solve this, because then the dashboard would be using events that don't contain information about queries. |
Well, it seems that with |
The
[Filebeat PostgreSQL] Query Duration Overview
seems to have a spurious query saved:postgresql.log.query:*
This makes it so that no results show up in the dashboard. Removing the query fixes the dashboard.
This looks like the offending line in the code:
beats/filebeat/module/postgresql/_meta/kibana/7/dashboard/Filebeat-Postgresql-slowlogs.json
Line 232 in 02d29c6
The text was updated successfully, but these errors were encountered: