In your template you have created a type map, but since you are not setting a type on the output, the document_type will default to doc. So you have two types, which is a problem.
I think you can fix this either by changing the mapping name in the template to doc (and creating a new index) or using the (deprecated) document_type setting on the output.
thank you. corrected. same error even after correction. see below. All I need to know is this....what's the minimum example of an index template that sets a single field as geo_point?
(Why can't logstash set a geo_point field in the conf file via mutate option?)
HERE IS MY FAILED TEMPLATE
Error message..."Rejecting mapping update to [geo-test] as the final mapping would have more than 1 type: [geo-test, doc]"
Operation generating the error was Logstash CSV filter...so Magnus will Logstash be able to simply set a field as geo_point without using an index template to set a field as geo_point?
Operation generating the error was Logstash CSV filter...
No, that's not what I meant. Are you saying that it's when Logstash posts to Elasticsearch that you get the error? Please always quote error messages in full.
so Magnus will Logstash be able to simply set a field as geo_point without using an index template to set a field as geo_point?
No. The index needs to be configured (via explicit mappings) that a particular field is a geo_point field. This can be done via an index template, via mappings provided when the index is created, or via the put mapping API.
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.