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

Add a custom log parser #3518

Closed
realitix opened this issue Jan 7, 2025 · 3 comments
Closed

Add a custom log parser #3518

realitix opened this issue Jan 7, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@realitix
Copy link

realitix commented Jan 7, 2025

Describe the feature you would like to see

I want to be able to parse my logs and group multiple log lines together.
For example, when I have an exception in Python, it generates several dozen lines, which completely clutters the logs.
I would like to group all these logs together with a button to expand the logs. This would allow displaying only one line for the exception and, if needed, revealing the full exception details.
Since it's not possible to cover all log grouping use cases, a custom log parser is essential.

Describe how you would like to see this feature implemented

No response

Describe any alternatives you've considered

No response

@realitix realitix added the enhancement New feature or request label Jan 7, 2025
@amir20
Copy link
Owner

amir20 commented Jan 7, 2025

Dozzle already does grouping of logs. It doesn't support collapsing though.

Adding custom log parsers and customizations is really hard work. It's beyond the time I have to support it. Also Dozzle is written in Go, which is a compiled language. I prefer to create solutions that work for most, such as a grouping that is currently done. If you want to send a PR to improve it then I am happy to accept it. But I wouldn't want to add customizations and custom logics as that over complicates things.

@amir20
Copy link
Owner

amir20 commented Jan 7, 2025

Although it does seem like auto grouping is broken 🤔

@amir20
Copy link
Owner

amir20 commented Jan 7, 2025

I had a bug. It is fixed at #3520

Screenshot 2025-01-07 at 11 30 26 AM

The only part that is not implemented is collapsing. I don't think I will do that to be honest as that it is pretty hard.

@amir20 amir20 closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants