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

Mention logfile and line number #837

Closed
anayrat opened this issue Dec 10, 2024 · 1 comment
Closed

Mention logfile and line number #837

anayrat opened this issue Dec 10, 2024 · 1 comment

Comments

@anayrat
Copy link
Contributor

anayrat commented Dec 10, 2024

Hello Gilles,

I used to look for an example query in the log.
A cool feature could be to add the logfile and corresponding line number next to the example query :)

Thanks

@darold
Copy link
Owner

darold commented Feb 15, 2025

Commit 08f11c2 adds log filename when several logs are processed at the same time. About line number this is not something that can be done with exact line matching with the pgbadger parser implementation, I recommend the use of the query id for the query search in the log. pgbadger will report it for every sample if the log_line_prefix use the query id.

@darold darold closed this as completed Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants