2018년 3월 19일 월요일

ElasticSearch 를 윈도우에 설치하고 테스트 할때,


참고 : https://stackoverflow.com/questions/48209323/content-type-header-application-x-www-form-urlencoded-is-not-supported


-텍스트일떄는
curl -XGET localhost:9200/ -H "Content-Type: application/json" -d "{\"query\": {\"simple_query_string\" : {\"fields\" : [\"content\"], \"query\" : \"foo bar -baz\"}}}"

-json 파일일때는
curl -XPOST localhost:9200/classes/class/1/ -H "Content-Type: application/json" -d @onclass.json

_bulk 집어넣을떄 kibana 에서 편하게
Dev Tools 에서
POST _bulk
{ "index" : { "_index" : "basketball", "_type" : "record", "_id" : "1" } }
{"team" : "Golden States Warriors","name" : "Stephen Curry", "points" : 30,"rebounds" : 3,"assists" : 4, "blocks" : 5, "submit_date" : "2016-10-11"}
{ "index" : { "_index" : "basketball", "_type" : "record", "_id" : "2" } }
....

Related Posts:

  • Elasticsearch 로그검색시스템 팁http://www.iblue.kr/xe/?mid=board_pwTp15&listStyle=list&document_srl=1793774 갠적으로 이런 깔끔한 스탈좋은… Read More
  • ELK 테스트 해본자료갠적으로 따라하기 쉬웠던 곳 -Logstash 설치 및 사용법 http://brownbears.tistory.com/67 -(3) ELKR (ElasticSearch + Logstash + Kibana + Redis) 로그 분석 시스템 http://blog.plura.io/?p=3363 -Logstash Configuration Examples http://blog.naver.com/PostV… Read More
  • ELK Filebeat, AWStats 설치 CentOS 7에 ELK, Filebeat, AWStats 설치 후 웹 로그 및 쉘 명령어 분석하기 https://handongchoi.com/2017/10/28/install-elk/ 무엇보다 , post 의 body 를 로그에 남길수있게 한다는 것이 신기.… Read More
  • ElasticSearch 를 윈도우에 설치하고 테스트 할때, 참고 : https://stackoverflow.com/questions/48209323/content-type-header-application-x-www-form-urlencoded-is-not-supported -텍스트일떄는 curl -XGET localhost:9200/ -H "Content-Type: application/json" -d "{\"query\": {\"simple_quer… Read More
  • 엘라스틱서치 실무 예제, 등 링크모음총정리 ElasticSearch 기본 개념부터  (*)공식사이트https://www.elastic.co/kr/products/elasticsearch (*****)엘라스틱서치 이해하기 20160613https://www.slideshare.net/dahlmoon/20160613 Elasticsearch 강좌 (*****)인프런 강좌:무료이고 상세한 기본설… Read More

0 comments:

댓글 쓰기