Extracting filename from existing field (Source)?

78 Views Asked by At

from the below source path, i want to get "servicename" as an another field. can someone please provide the example use case?

source path = "/var/log/companyname/servicename/example/test/testfile.log"

How can i give grok filters in logstash for this?

0

There are 0 best solutions below