ELK 6.4.3 OSS 버전 설치 구성
5864 단어 elasticsearch
Apache 2.0 licensed
하며 오픈 소스 프로젝트에 속합니다.Elasticsearch OSS 역인덱스 서비스
Elasticsearch OSS 6.4.3 다운로드 주소:https://www.elastic.co/downloads/past-releases/elasticsearch-oss-6-4-3
구성 파일의 압축을 풀려면 다음과 같이 하십시오.
#
path.data: /data/disk/data/elasticsearch
#
path.logs: /data/disk/log/elasticsearch
# , ,centos6 。
bootstrap.memory_lock: false
# , ,centos6 。
bootstrap.system_call_filter: false
#
network.host: 0.0.0.0
#
http.port: 9200
비
root
아래su ekl
로 전환하고 bin/elasticsearch
실행합니다.결과를 보려면 다음과 같이 하십시오.curl http://localhost:9200/
elasticsearch analysisik 분사 플러그인
elasticsearch-analysis-ik 다운로드 주소:https://github.com/medcl/elasticsearch-analysis-ik/releases
설치:
새 ik 디렉토리를 만들고 ik 디렉토리의 압축을 풉니다.
mkdir your-es-root/plugins/ik
unzip elasticsearch-analysis-ik-6.4.3.zip -d your-es-root/plugins/ik
새 색인:
curl -XPUT http://localhost:9200/index
새 매핑
curl -XPOST http://localhost:9200/index/doc/_mapping -H 'Content-Type:application/json' -d'
{
"properties": {
"content": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word"
}
}
}'
Kibana OSS 시각 형상 개발 도구
Kibana OSS 6.4.3 다운로드 주소:https://www.elastic.co/downloads/past-releases/kibana-oss-6-4-3
설정
elasticsearch.url
부터 es:실행bin/kibana
까지.http://localhost:5601
에서 인터페이스를 볼 수 있습니다.Logstash OSS에서 mysql을 ES로 동기화
Logstash OSS 6.4.3 다운로드 주소:https://www.elastic.co/downloads/past-releases/logstash-oss-6-4-3
파일 구성
input {
jdbc {
jdbc_driver_library => "mysql-connector-java-5.1.33-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_user => "user"
jdbc_password=> "password"
jdbc_connection_string => "jdbc:mysql://192.168.0.100:3306/db"
jdbc_validate_connection => "true"
schedule => "* * * * *"
use_column_value => true
tracking_column => "id"
last_run_metadata_path => "/data/.logstash_shandian_last_run"
statement => "SELECT a.id, a.title, a.keywords, d.content FROM table_article a JOIN table_data d ON a.id=d.id WHERE a.id > :sql_last_value AND a.status=100 ORDER BY id ASC"
jdbc_paging_enabled =>true
jdbc_page_size => 10000
}
}
filter {
date {
match => ["addline", "yyyy-MM-dd HH:mm:ss,SSS", "UNIX"]
target => "@timestamp"
locale => "cn"
}
}
output {
elasticsearch {
hosts => ["http://192.168.0.200:9200"]
index => "suoyin"
document_id => "%{id}"
}
stdout {
codec => line {
format => "suoyin: %{id} %{title}"
}
}
}
실행
bin/logstash -f logstash.conf
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
App Search의 본문 파싱(저를 포함하여) 일부 사람들이 Swifttype 사이트 검색에서 놓친 기능은 CSS 선택기를 사용하여 콘텐츠를 구문 분석할 수 있다는 것입니다. App Search 크롤러는 지정한 웹사이트에서 모든 콘텐츠를 추출하...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.