hi,
I am trying to parse the file name from the source field without the path, I trid to do the following:
grok {
match => ["source", "%{GREEDYDATA}/%{GREEDYDATA}/%{GREEDYDATA:filename9}"]
#add_field => { "filename9" => "%{filename9}.gababa" }
}
I am getting only the filename (without the path - which is good) but twice. for example
myfile.log myfile.log
any idea?