logstash上报数据到elasticsearch
前提是已经安装、部署完logstash和elasticsearchWindows安装启动logstash_zhangphil的博客-CSDN博客_logstash windows安装Windows安装启动logstash(1)下载logstash,下载链接:Download Logstash Free | Get Started Now | Elastic(2)下载完成后,解压。自己写一个Windows环境下的配置文件,名字可自己定义,比如叫:my_logstash.conf,内容:注意my_logstash.conf的存放位置,这个配置文件需要放在“home”下,和logstash解压后形成的bin,config,jdk等目录文件夹同层级,否则后面启动会报找不到这个配置文件。(
https://blog.csdn.net/zhangphil/article/details/125148324?spm=1001.2014.3001.5501
Windows环境下安装、启动Elasticsearch_zhangphil的博客-CSDN博客_elasticsearch windows 启动(1)下载Elasticsearch,下载链接:Download Elasticsearch | ElasticDownload Elasticsearch or the complete Elastic Stack (formerly ELK stack) for free and start searching and analyzing in minutes with Elastic.https://www.elastic.co/cn/downloads/elasticsearch(2)下载W
https://blog.csdn.net/zhangphil/article/details/124475925
Elasticsearch报错: received plaintext http traffic on an https channel, closing connection ..._zhangphil的博客-CSDN博客Elasticsearch报错:received plaintext http traffic on an https channel, closing connection Netty4HttpChannel。现象,当启动Elasticsearch后,在浏览器输入地址http://localhost:9200/后,报错received plaintext http traffic on an https channel, closing connection Netty4HttpChann.
https://blog.csdn.net/zhangphil/article/details/124476717
剩下的主要是配置logstash的启动加载文件中的output部分,指明logstash上报到elasticsearch:
output {
elasticsearch {
hosts => ["http://localhost:9200"]
user => "zhangphil"
password => "123456"
index => "fly-%{+YYYY.MM.dd}"
template_overwrite => "false"
}
stdout{
codec => json {
}
}
}
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://zhangphil.blog.csdn.net/article/details/126179168
内容来源于网络,如有侵权,请联系作者删除!