Hello , Is it possible to create an index in Filebeat ? My example config doesn't work :
output.elasticsearch:
hosts: ["https://localhost:9200"]
index: "%{[log.file.path]}"
Hello , Is it possible to create an index in Filebeat ? My example config doesn't work :
output.elasticsearch:
hosts: ["https://localhost:9200"]
index: "%{[log.file.path]}"
By the way elasticsearch doesn't allow "/" char for index name. I think this is my problem. How can I parse this field and take filename ?
Hey @Burak_Cayir,
I don't think there is a way to parse the filename at this point. Is there any other field you could use?
By the way, I am curious, why would you like to use an index per file? It is usually not recommended to have many small indexes.
© 2020. All Rights Reserved - Elasticsearch
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.