반응형
curl -XPUT -u elastic:패스워드 http://192.168.16.148:9200/my-index-000001 -H 'Content-Type: application/json' -d '
{
"mappings": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}'
index에 미리 만들어놓고 덮어쓰기
결과
{"acknowledged":true,"shards_acknowledged":true,"index":"my-index-000001"}1001460000@logstash-node-0:/usr/share/logstash/bin$
반응형
'elastic' 카테고리의 다른 글
elasticsearch backfill, forward-fill with previous log's value (0) | 2023.04.12 |
---|---|
elasticsearch geo indexing -geospatial fields (0) | 2023.04.12 |
인덱싱 중에... (0) | 2023.03.17 |
logstash grok filter kvpattern (0) | 2023.03.15 |
make grok patterns with debugger (0) | 2023.03.10 |