I had some issues.
value's decimal point was deleted in kibana visualization and dashboard
value was a numeric field.
I tried to change number format, but it didn't work.
I figured the field was indexed as 'long' (default mapping)
check my mapping info
http://{localhost}:9200/{index_}*/_mapping
I updated mapping type to float from long
curl -X "PUT" "http://{localhost}:9200/_template/{template name}" \
-H 'Content-""type":" application/json; charset=utf-8' \
-d $'{
"index_patterns": [
"{index_}*"
],
"template": "*",
"mappings": {
"docs": {
....
"timestamp": {
"type": "date"
},
"value": {
"type": "float"
},
"week": {
"type": "long"
},
"year": {
"type": "long"
}
....
}
}
}'
References
ㄴ https://discuss.elastic.co/t/decimal-precision-removed-in-data-table-visualization/106799
ㄴ https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#field-datatypes
ㄴ https://findstar.pe.kr/2018/06/29/elasticsearch-template/
ㄴ https://yookeun.github.io/elasticsearch/2018/03/09/elastic-mapping/
ㄴ https://discuss.elastic.co/t/template-is-missing/21692
value's decimal point was deleted in kibana visualization and dashboard
value was a numeric field.
I tried to change number format, but it didn't work.
I figured the field was indexed as 'long' (default mapping)
check my mapping info
http://{localhost}:9200/{index_}*/_mapping
timestamp: { type: "date" },
value: { type: "long" },
week: { type: "long" }
I updated mapping type to float from long
curl -X "PUT" "http://{localhost}:9200/_template/{template name}" \
-H 'Content-""type":" application/json; charset=utf-8' \
-d $'{
"index_patterns": [
"{index_}*"
],
"template": "*",
"mappings": {
"docs": {
....
"timestamp": {
"type": "date"
},
"value": {
"type": "float"
},
"week": {
"type": "long"
},
"year": {
"type": "long"
}
....
}
}
}'
References
ㄴ https://discuss.elastic.co/t/decimal-precision-removed-in-data-table-visualization/106799
ㄴ https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html#field-datatypes
ㄴ https://findstar.pe.kr/2018/06/29/elasticsearch-template/
ㄴ https://yookeun.github.io/elasticsearch/2018/03/09/elastic-mapping/
ㄴ https://discuss.elastic.co/t/template-is-missing/21692
댓글
댓글 쓰기