Now because of "file" => "%{[@metadata][s3][key]}"
i get my index as "filenameins3"
Eg: if I have a file name as log-ecoa-production-index-2019-04-16-17.txt on s3
index comes as log-ecoa-production-index-2019-04-16-17.txt
I want to remove the extension and if required "-17" too and put as index, is there anyway using grok I can achieve this >
then index should be log-ecoa-production-index-2019-04-16-17
or log-ecoa-production-index-2019-04-16 as per requirement
Thanks Badger,
I am trying it. Could tell me what script is this line from ```
mutate { gsub => [ "message", ".\w{3}", "", "message", "([0-9]{4}-[0-9]{2}-[0-9]{2})-[0-9]+", "\1" ] } ?
like what language does gsub or kibana use ? so for future adjustments I could do it
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.