Hi-
I hit the below error, when I run the windows metricset:
Failed to connect to backoff(elasticsearch(http://172.20.23.100:9200)): Connection marked as failed because the onConnect callback failed: Error loading Elasticsearch template: could not load template. Elasticsearch returned: couldn't load template: couldn't load json. Error: 400 Bad Request: {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [alias] declared on field [hostname]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_default_]: No handler for type [alias] declared on field [hostname]","caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [alias] declared on field [hostname]"}},"status":400}
Hi @pmercado
I use elasticsearch version 6.2, yes, it supports the Alias field.
I just tried adding the below line in the metribeats.yml and ran the beats again
index.mapping.single_type: true
but, this time its a different error:
WARN elasticsearch/client.go:531 Cannot index event publisher.Event{Content:beat.Event{Timestamp:time.Time{wall:0xbf1cf9811a6b0020, ext:2196858201, loc:(*time.Location)(0x2b83b20)}, Meta:common.MapStr(nil), Fields:common.MapStr{"agent":common.MapStr{"hostname":"win7prox68", "type":"metricbeat", "version":"7.0.0"}, "ecs":common.MapStr{"version":"1.0.0-beta2"}, "event":common.MapStr{"dataset":"windows.perfmon", "duration":5000300, "module":"windows"}, "host":common.MapStr{"name":"win7prox68"}, "metricset":common.MapStr{"name":"perfmon"}, "service":common.MapStr{"type":"windows"}, "windows":common.MapStr{"perfmon":common.MapStr{"process":common.MapStr{"handle":common.MapStr{"count":73}}, "process_handle_count":"csrss#2"}}}, Private:interface {}(nil)}, Flags:0x0} (status=400): {"type":"illegal_argument_exception","reason":"Rejecting mapping update to [test_counters-2019.03.21] as the final mapping would have more than 1 type: [_doc, doc]"}
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.