目录
-
21.1. 安装
-
-
21.1.1. 6.x
-
21.1.2. ElasticSearch + Logstash + Kibana 安装
-
-
21.1.2.1. ElasticSearch 安装
-
21.1.2.2. Kibana 安装
-
21.1.2.3. Logstash 安装
-
21.1.2.4. 从 5.x 升级到 6.x
-
21.2. logstash 命令简单应用
-
-
21.2.1. -e 命令行运行
-
21.2.2. -f 指定配置文件
-
21.2.3. -t:测试配置文件是否正确,然后退出。
-
21.2.4. -l:日志输出的地址
-
21.2.5. log.level 启动Debug模式
-
21.3. 配置 Broker(Redis)
-
-
21.3.1. indexer
-
21.3.2. shipper
-
21.4. logstash 配置项
-
-
21.4.1. input
-
-
21.4.1.1. 标准输入输出
-
21.4.1.2. rubydebug
-
21.4.1.3. 本地文件
-
-
21.4.1.3.1. 指定文件类型
-
-
21.4.1.3.1.1. Nginx
-
21.4.1.4. TCP/UDP
-
21.4.1.5. Redis
-
21.4.1.6. Kafka
-
21.4.1.7. jdbc
-
21.4.2. filter
-
-
21.4.2.1. 日期格式化
-
21.4.2.2. patterns
-
21.4.2.3. syslog
-
21.4.2.4. csv
-
21.4.2.5. 使用ruby 处理 CSV文件
-
21.4.2.6. 执行 ruby 代码
-
21.4.2.7. grok debug 工具
-
21.4.3. output
-
-
21.4.3.1. stdout
-
21.4.3.2. file 写入文件
-
21.4.3.3. elasticsearch
-
-
21.4.3.3.1. 自定义 index
-
21.4.3.4. exec 执行脚本
-
21.5. Example
-
-
21.5.1. Spring boot logback
-
21.5.2. 索引切割实例
-
21.5.3.
-
-
21.5.3.1.
-
21.6. FAQ
-
-
21.6.1. 查看 Kibana 数据库
-
21.6.2. logstash 无法写入 elasticsearch
-
21.6.3. 标准输出
-
21.6.4. 5.x 升级至 6.x 的变化
官方网站https://www.elastic.co
环境准备:
操作系统: CentOS 7
Java 1.8
Redis
ElasticSearch + Logstash + Kibana 均使用 5.2 版本
以下安装均使用 Netkiller OSCM 脚本一键安装
curl -s https://raw.githubusercontent.com/oscm/shell/master/search/elastic/elastic-6.x.sh | bash
21.1.2. ElasticSearch + Logstash + Kibana 安装
21.1.2.1. ElasticSearch 安装
粘贴下面命令到Linux控制台即可一键安装
curl -s https://raw.githubusercontent.com/oscm/shell/master/search/elasticsearch/elasticsearch-5.x.sh | bash
curl -s https://raw.githubusercontent.com/oscm/shell/master/log/kibana/kibana-5.x.sh | bash
curl -s https://raw.githubusercontent.com/oscm/shell/master/log/kibana/logstash-5.x.sh | bash
升级仓库
curl -s https://raw.githubusercontent.com/oscm/shell/master/search/elastic/elastic-6.x.sh | bash
yum update logstash
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。