logstash输出到elasticsearch

Posted by 夏泽民

output配置中elasticsearch配置 action index 给一个文档建立索引 delete 通过id值删除一个文档(这个action需要指定一个id值) create 插入一条文档信息,如果这条文档信息在索引中已经存在,那么本次插入工作失败 update 通过id值更新一个文档。更新有个特殊的案例upsert,如果被更新的文档还不存在,那么就会用到upsert 示例:



kibana

Posted by 夏泽民

https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html 下载测试数据 Kibana Dev Tools > Console , set up a mapping for the Shakespeare data set: PUT /shakespeare { “mappings”: { “doc”: { “properties”: { “speaker”: {“type”: “keyword”}, “play_name”: {“type”: “keyword”}, “line_id”: {“type”: “integer”}, “speech_number”: {“type”: “integer”} } } } }



index

Posted by 夏泽民

2.1 Node 与 Cluster Elastic 本质上是一个分布式数据库,允许多台服务器协同工作,每台服务器可以运行多个 Elastic 实例。



ik

Posted by 夏泽民

https://github.com/medcl/elasticsearch-analysis-ik/releases 中文分词器下载 $elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.2.4/elasticsearch-analysis-ik-6.2.4.zip



head

Posted by 夏泽民

head是一个用于管理Elasticsearch的web前端插件,该插件在es5版本以后采用独立服务的形式进行安装使用(之前的版本可以直接在es安装目录中直接安装),因为需要安装nodejs、npm 然后安装elasticsearch-head插件:



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at [email protected]

Subscribe to our mailing list

* indicates required