I want to retrieve the name of a (the only) .jar file in the parent folder of a directory which is already named in the source field because the log came through filebeat.
So my /path/to/application/ looks like this:
Inside the logs folder are the logs located that are fetched by filebeat. Now I want to have new field called "application" which has for the given example "app_name" as a value.
I know this is a pretty special requirement but who know, maybe this is possible.