teoman
(teoman shipahi)
June 24, 2018, 3:17pm
1
I am following practices below;
I am using both Elasticsearch & Kibana version 6.2.1
I followed instructions as below;
But, I am getting following error:
No Compatible Fields: The "logstash*" index pattern does not contain any of the following field types: geo_point
Am I missing something here? How can I resolve this error?
teoman
(teoman shipahi)
June 24, 2018, 3:38pm
3
dadoonet
(David Pilato)
June 24, 2018, 5:02pm
4
Did you look at it?
"geo": {
"properties": {
"coordinates": {
"properties": {
"lat": {
"type": "float"
},
"lon": {
"type": "float"
}
}
},
We can clearly see that your mapping is wrong here.
teoman
(teoman shipahi)
June 24, 2018, 5:53pm
5
I see. I don't know what would went wrong while I initially PUT mappings.
So should I delete and re-create?
teoman
(teoman shipahi)
June 24, 2018, 6:14pm
6
I deleted my logstash* indexes. Then first created mapping, and run following command;
Invoke-RestMethod "http://localhost:9200/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "./sampleDatas/logs.jsonl"
And here is my GET logstash-*/_mapping
again:
And when I try to create Coordinate map by following example, I am still getting same error.
https://www.elastic.co/guide/en/kibana/6.3/_coordinate_map.html
Is there anything I can try?
tdasch
(Thomas Dasch)
June 24, 2018, 6:47pm
7
What are inputting when you create the mapping? For geo_point to work you need something such as
PUT my_index
{
"mappings": {
"_doc": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
}
teoman
(teoman shipahi)
June 24, 2018, 7:07pm
8
OK After I delete/create index and restart kibana, it is picking up the value. Thanks!
system
(system)
Closed
July 22, 2018, 7:18pm
9
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.