무료
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
우분투 16.04를 vm으로 돌리고 있는데 저장을 어떻게 하나요?
설치를 다 했는데, 다시 시작하면 초기화가 되어 있습니다.혹시 우분투 버전이 너무 낮아서 그런건지 / 저장하고 종료하고 싶은데 저장 및 종료가 잘 안되네요. 다 날아가서 당황스럽습니다.VMWARE에서 하는게 제일 안전한 것인지요 답변해주시면 감사하겠습니다 ~~
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
에러 확인 부탁드립니다
아래 에러 원인과 해결방법좀 부탁드려요(py310) user@user-desktop:~/Desktop/ELK$ curl -XGET localhost:9200 curl: (52) Empty reply from server
- 해결됨ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
Elasticsearch 버전 8 | mappsing, data file
curl -XPUT 'localhost:9200/basketball/_mappings' -d @basketball_mapping.json -H 'Content-Type:application/json'{ "properties" : { "team" : { "type" : "text", "fielddata" : true }, "name" : { "type" : "text", "fielddata" : true }, "points" : { "type" : "long" }, "rebounds" : { "type" : "long" }, "assists" : { "type" : "long" }, "blocks" : { "type" : "long" }, "submit_date" : { "type" : "date", "format" : "yyyy-MM-dd" } } } curl -XPOST 'localhost:9200/_bulk' --data-binary @bulk_basketball.json{ "index" : { "_index" : "basketball", "_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", "_id" : "2" } } {"team" : "Golden States Warriors","name" : "Stephen Curry","points" : 32,"rebound" : 5,"assist" : 8, "blocks" : 5, "submit_date" : "2016-10-13"} { "index" : { "_index" : "basketball", "_id" : "3" } } {"team" : "Golden States Warriors","name" : "Stephen Curry","points" : 28,"rebound" : 2,"assist" : 3, "blocks" : 1, "submit_date" : "2016-10-17"} { "index" : { "_index" : "basketball", "_id" : "4" } } {"team" : "Golden States Warriors","name" : "Stephen Curry","points" : 36,"rebound" : 1,"assist" : 2, "blocks" : 1, "submit_date" : "2016-11-20"} { "index" : { "_index" : "basketball", "_id" : "5" } } {"team" : "Golden States Warriors","name" : "Stephen Curry","points" : 36,"rebound" : 1,"assist" : 2, "blocks" : 1, "submit_date" : "2016-11-25"} { "index" : { "_index" : "basketball", "_id" : "6" } } {"team" : "Golden States Warriors","name" : "Stephen Curry","points" : 32,"rebound" : 1,"assist" : 4, "blocks" : 1, "submit_date" : "2016-11-28"} { "index" : { "_index" : "basketball", "_id" : "7" } } {"team" : "Utah Jazz","name" : "Rudy Gobert", "points" : 3,"rebounds" : 11,"assists" : 4, "blocks" : 7, "submit_date" : "2016-10-12"} { "index" : { "_index" : "basketball", "_id" : "8" } } {"team" : "Utah Jazz","name" : "Rudy Gobert","points" : 4,"rebound" : 13,"assist" : 8, "blocks" : 5, "submit_date" : "2016-10-14"} { "index" : { "_index" : "basketball", "_id" : "9" } } {"team" : "Utah Jazz","name" : "Rudy Gobert","points" : 8,"rebound" : 10,"assist" : 3, "blocks" : 6, "submit_date" : "2016-10-18"} { "index" : { "_index" : "basketball", "_id" : "10" } } {"team" : "Utah Jazz","name" : "Rudy Gobert","points" : 12,"rebound" : 9,"assist" : 2, "blocks" : 6, "submit_date" : "2016-11-10"} { "index" : { "_index" : "basketball", "_id" : "11" } } {"team" : "Utah Jazz","name" : "Rudy Gobert","points" : 12,"rebound" : 14,"assist" : 2, "blocks" : 7, "submit_date" : "2016-11-22"} { "index" : { "_index" : "basketball", "_id" : "12" } } {"team" : "Utah Jazz","name" : "Rudy Gobert","points" : 8,"rebound" : 10,"assist" : 4, "blocks" : 5, "submit_date" : "2016-11-27"} { "index" : { "_index" : "basketball", "_id" : "13" } } {"team" : "Washington Wizards","name" : "John Wall","points" : 8,"rebound" : 1,"assist" : 13, "blocks" : 2, "submit_date" : "2016-10-18"} { "index" : { "_index" : "basketball", "_id" : "14" } } {"team" : "Washington Wizards","name" : "John Wall","points" : 13,"rebound" : 2,"assist" : 12, "blocks" : 3, "submit_date" : "2016-11-10"} { "index" : { "_index" : "basketball", "_id" : "15" } } {"team" : "Washington Wizards","name" : "John Wall","points" : 15,"rebound" : 3,"assist" : 12, "blocks" : 3, "submit_date" : "2016-11-22"} { "index" : { "_index" : "basketball", "_id" : "16" } } {"team" : "Washington Wizards","name" : "John Wall","points" : 22,"rebound" : 4,"assist" : 14, "blocks" : 3, "submit_date" : "2016-11-27"}
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
우분투 16.04 에 엘라스틱 서치 설치시 에러
연결이 거부된다고 뜹니다 ㅠ
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
illegal_argument_exception 오류
curl -H 'Content-type: application/json' -XPUT 'localhost:9200/basketball/record/_mapping?include_type_name=true&pretty' -d @basketball_mapping.json 을 입력하였더니 illegal_argument_exception 오류가 떠서basketball_mapping.json의 "yyyy-MM-dd"를 "strict_date_optional_time||epoch_millis" 로 바꾸었더니 해결되었습니다.
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
bul_basketball.json 벌크할때 오류나시는 분들보세요
다운받으신 json파일 마지막에서 엔터하시고 저장하시고 명령어 입력하시면 됩니다.
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
logstash 스타트 불가
logstash를 start하면 계속 아래와 같이 출력됩니다. 구글링을 아무리해봐도 해결책이 안나오는데... 어떻게 하면 될까요..?? 참고로 윈도우10에서 우분투 환경입니다. md2_global@DESKTOP-Q1V5J1G:~/downloads$ sudo systemctl start logstash.service System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
json 파일 XPOST로 데이터를 입력하는데 왜 이상하게 들어가질까요..??
강사님이 알려주신 명령어와 동일하게 입력했는데도, 데이터가 이상하게 들어갑니다... 그래서 XGET했을때도 이상한 값이 출력되구요... md2_global@DESKTOP-Q1V5J1G:~/elk_stack$ curl -XPOST 'localhost:9200/_bulk?pretty' --data-binary @simple_basketball.json { "took" : 12, "errors" : false, "items" : [ { "index" : { "_index" : "basketball", "_type" : "record", "_id" : "1", "_version" : 27, "result" : "updated", "_shards" : { "total" : 2, "successful" : 1, "failed" : 0 }, "created" : false, "status" : 200 } }, { "index" : { "_index" : "basketball", "_type" : "record", "_id" : "2", "_version" : 3, "result" : "updated", "_shards" : { "total" : 2, "successful" : 1, "failed" : 0 }, "created" : false, "status" : 200 } } ] } md2_global@DESKTOP-Q1V5J1G:~/elk_stack$ curl -XGET localhost:9200/_search?pretty --data-binary @avg_points_aggs.json { "took" : 6, "timed_out" : false, "_shards" : { "total" : 10, "successful" : 10, "failed" : 0 }, "hits" : { "total" : 26, "max_score" : 0.0, "hits" : [ ] }, "aggregations" : { "avg_score" : { "value" : 23.333333333333332 } } }
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
Elasticsearch 6.0 부터는 Content-Type을 명시해야한다고 합니다!
0:42 $ curl -XPOST http://localhost:9200/classes/class/1/ -H'Content-Type: application/json' -d ' {"title" : "Algorithm", "professor" : "John"}'
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
다중쿼리는 어떻게하나요
포인트30 또는 리바운드 3개(or) 혹은 포인트30 그리고 리바운드 2개(and)
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
--header 옵션
curl -XPOST http://localhost:9200/_bulk --header 'content-type: application/json' --data-binary @classes.json 해더 옵션을 줘야하던데 버전이 업데이트 되서 그런가요?
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
elasticsearch 에러 관련입니다.
elasticsearch 7.x 버젼부터는 curl 리퀘스트에서 헤더를 명확히 설정해주어야하고 또 mappign을 생성할 때에는 include_type_name을 true로 설정해주어야한다고 합니다. 이에 대한 에러문구는 아래와 같습니다. { "error" : { "root_cause" : [ { "type" : "illegal_argument_exception", "reason" : "Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true." } ], "type" : "illegal_argument_exception", "reason" : "Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true." }, "status" : 400 } 그래서 저는 mapping을 생성할 때 아래와 같이 커맨드라인을 날렸습니다. curl -H 'Content-Type:application/json' -XPUT 'http://localhost:9200/classes/class/_mapping?include_type_name=true&pretty' -d @classesRating_mapping.json 그런데 아래와 같은 에러가 다시 발생했습니다. { "error" : { "root_cause" : [ { "type" : "mapper_parsing_exception", "reason" : "No handler for type [string] declared on field [professor]" } ], "type" : "mapper_parsing_exception", "reason" : "No handler for type [string] declared on field [professor]" }, "status" : 400 } 이에 대해서 원인을 찾아보니 elasticsearch가 mapping 타입 중 string을 삭제하고 text로 변경하여 사용하고있다고 합니다. 관련 정보 링크 : https://stackoverflow.com/questions/47452770/no-handler-for-type-string-declared-on-field-name 그래서 classesRating_mapping.json에서 type이 string으로 되어있는 부분들을 모두 text로 변경한 후 위 커맨드라인을 다시 실행해보니 정상적으로 실행되었습니다. 혹시 이 강의를 보시는 분들 중 elasticsearch 6.x 이상의 버젼을 사용하여 수강하시는 분들은 이 부분들을 참고해보시면 좋을 것 같습니다.
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
13과 에서 날짜 선택
현재 제가 강좌를 시청하고 있는 시간이 2019년 8월이고강의를 찍으신 시간이 2016년정도이니, 그 부분을 명시해서 앞으로 보는 시청자들에게도 자신의 환경에 맞게 알아서 조절하게끔 알려주어야 할 것 같습니다..!!이것 문제인지 모르고 계속 헤맸네요 ㅠㅠ ㅎㅎ
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
키바나가 제대로 설치되지 않습니다.
말씀하신 대로 kibana deb 파일을 다운받고 설치 후 kibana.yml을 수정하고 /usr/share/kibana/bin/kibana를 실행했으나 permission error가 뜹니다. 한 json 파일의 권한이 잘못된가 같아 구글링해서 해결해 보려 해도 잘 안되네요. 몇주 째 키바나 설치에 애를 먹고 있어서 너무 답답하네요. 조언 부탁드립니다.
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
깃헙 파일 logstash.conf 괄호 안 닫혀 있어서 에러가 났었어요. 필터랑 아웃풋 } 하나씩 더 추가해 주어야 할듯합니다.
제목이 내용입니다.
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
현재 7버전 이용중인데 -XPOST 시 에러가 발생합니다.
curl -XPOSt http://localhost:9200/classes/class/1/ -d '{"title" : "Algorithm", "professor" : "John"}' 입력 시 www-form-urlencoded is not supported status 406 에러가 발생합니다. 높은 버전에선 -H 'Content-Type: application/json' 을 추가해줘야 할듯합니다.
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
or 조건 쿼리
안녕하세요. 좋은 강의 쉽게 설명해주셔서 잘 듣고 있습니다. elasticsearch의 쿼리 조건에 or를 적용하는 방법이 있을까요? 예를 들어, message field 값 중 'success'와 'error' 2개의 단어가 포함된 데이터를 조회하고자 합니다. match를 사용하면 중복된 필드 오류가 나옵니다. 일반쿼리문에서 or에 해당하는 쿼리방법이 있을까요?
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
index 생성은 왜 XPOST가 아니라 XPUT인가요?
index 생성은 왜 XPOST가 아니라 XPUT인가요? POST쓸때와 PUT쓸때가 좀 헷갈리네요
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
logstash 및 filebeat 실행시 오류
// logstash.yml 파일 # Sample Logstash configuration for creating a simple # Beats -> Logstash -> Elasticsearch pipeline. input { beats { port => 5043 } } output { elasticsearch { hosts => ["http://localhost:9200"] manage_template => false index => "logstash-%{+YYYY.MM.dd}" #user => "elastic" #password => "changeme" } } invaild frame type, received: 84 // filebeat.yml // filebeat inputs paths: - /var/log/*.log //logstash output hosts:["192.168.100.148:5043"] error : failed to connect to backoff #netstat -nap : grep LISTEN tcp 0 0.0.0.0:5043 0.0.0.0:* LISTEN 114019/java 어디를 수정해야할지?
- 미해결ELK 스택 (ElasticSearch, Logstash, Kibana) 으로 데이터 분석
아주 기본적인 질문이 있습니다.
처음이라 너무 기초적인 것 같지만 질문 드립니다. 혹시 elasticsearch는 기존에 있는 관계형DB 내 JSON 형태로 저장된 내용에 대하여 검색이 가능한가요? 아니면 기존 데이터를 모두 JSON 형태로 하나하나 포멧에 맞추어 입력해 넣어야만 데이터 검색이 가능한가요?