-
Notifications
You must be signed in to change notification settings - Fork 16
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
Customizable Output Formatting and Custom Fields #611
Comments
Thank you for your interest, detailed review and suggestions. Yes, it is a good idea to make the output layout configuration more flexible. |
Thank you for the fast answer! I would be happy to help you by providing more use cases and priorities of the proposed features if you need them. |
You are always welcome to share your use cases or scenarios. It would be helpful. But there are 2 major obstacles to overcome.
I'm experimenting with improvements to the internal data models, we'll see what can be done here. |
Allow users to customize the output format and add custom fields for enhanced log readability.
Describe the problem this feature request solves
Currently,
pamburus/hl
provides a good way to read JSON log lines. However, it lacks the ability to customize the output format. This limits the user's ability to tailor the output to their specific needs and makes it difficult to add custom fields for more context or analysis.Describe the solution you'd like
I propose adding the following features:
Describe alternatives you've considered
I have considered using other tools for reading JSON logs, but
pamburus/hl
is currently the best in terms of its core functionality. However, the lack of output customization hinders its usefulness for more advanced use cases.Additional context
This feature would greatly enhance the flexibility and usability of
pamburus/hl
, making it a more powerful tool for analyzing JSON log data. It would allow users to create highly customized views of their logs, tailored to their specific needs.Example use case:
Imagine a log line like this:
With customizable output, I could define a format like:
Resulting in an output like:
This provides a much clearer and more informative view of the log data.
The text was updated successfully, but these errors were encountered: