-
Notifications
You must be signed in to change notification settings - Fork 8
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
Is it possible to parse a log that contains a java stacktrace? #197
Comments
Thanks for your nice words and a great question. To be completely frank I have never tried it, and it was not really ment for it. Any suggestions for a specific use case? |
I would like to analize tomcat's server error with and without exceptions. In the end of the day I would like to have a summary of exceptions that happened in a timeframe. Do you think that it is possible to implement? |
Well it is worth looking into. Finding data in a timeframe is included in the latest version. The tricky part may be how exceptions are logged in tomcat. I'll give it a try. The log-parser will not be be able to to treat both errors and stack traces in the same time. I'll prepare an example, and we can agree on the outcome. Would that work for you? |
Sounds good! I'm okay to run twice the parser with different ParseDefinition if it is necessary. Let me know how I can help in this process. I already have a PoC running on my side analysing my logs. |
Hi @tmoreira2020 as a starting point I have created a small example: The outout I get is:
Tell me what you would to have an an output. |
hey @baubakg , thanks for the quick follow up and sample. The sample that you provided is halfway of what I'm looking for. The second half would be a way to retrieve the stacktrace of the exception via |
Ok good. If I understand you correctly, ideally you want the stack trace attached to the relevant logEntry? |
Yes, correct! |
Ok I think we have a design limitation, as the log-parser in its current form, works with only one line at a time. Even multiple parsings will have the issue of deducing the relationship between the findings. I think we should consider a future feature where we accept that a log entry can be multi-lined. It is a bit tricky though, as there are two options:
However for now we cannot solve this I am afraid. |
I looked over the source code and couldn't figure out if it is possible to read/parse a java stacktrace. Is it possible? Or customizable?
Thanks
p.s. great work by the way!
The text was updated successfully, but these errors were encountered: