I\'m using Logstash + Elasticsearch + Kibana to have an overview of my Tomcat log files.
For each log entry I need to know the name of the file from which it came. I
Hi I added a grok filter to do just this. I only wanted to have the filename not the path, but you can change this to your needs.
filter { grok { match => ["path","%{GREEDYDATA}/%{GREEDYDATA:filename}\.log"] } }