I am using filebeat to collect nginx log and sent to ealsticsearch.
when config output.elasticsearch.index as : index: "onwards" , everything is fine, and kibana can catch the message.
But when I change "onwards" to "onwards-%{[beat.version]}-%{[+yyyy.MM.dd]}", then I got an error:
Bulk item insert failed (i=0, status=500): {"type":"string_index_out_of_bounds_exception","reason":"String index out of range: 0"}
And check the item was insert into elasticsearch as default index name, filebeat-6.3.2-*****,
Don't know where goes error..
my filebeat config:
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.