티스토리 뷰

반응형
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' 카테고리의 다른 글

Elastic stack  (0) 2023.04.12
elasticsearch backfill, forward-fill with previous log's value  (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
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함