logstash上报数据到elasticsearch

Posted zhangphil

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了logstash上报数据到elasticsearch相关的知识,希望对你有一定的参考价值。

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)下载Whttps://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                                          
        
    

以上是关于logstash上报数据到elasticsearch的主要内容,如果未能解决你的问题,请参考以下文章

metricbeat监控logstash,上报数据到Elasticsearch,Kibana中查看Logstash node节点的Transport address地址为127.0.0.1:9600

metricbeat监控logstash,上报数据到Elasticsearch,Kibana中查看Logstash node节点的Transport address地址为127.0.0.1:9600

logstash备份跟踪上报的数据记录

logstash排除特定文件或文件夹不采集上报日志数据

metricbeat监控logstash运行状态上报Elasticsearch后Kibana可视化查看

metricbeat监控logstash运行状态上报Elasticsearch后Kibana可视化查看