I'm using Java Tomcat logs as input and I'm trying to save the relevant info for each log into Elasticsearch.
A single log might look like this:
[log_level] - [error short description]
[stack trace] (containing tens of lines, depending on the error)
If I use the multiline codec to save each log, it saves the whole message, from timestamp to the end of the stack trace.
Is it possible to create different fields to save relevant info? I'd like to have fields like timestamp, log_level, and maybe filter the stack trace to show the most relevant lines.