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?