Get Name of a file in parent directory and put it into a field

Hello,
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:
logs/ app_name.jar

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.

Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.