Windows 7 安装 Logstash 6.6.0

本文介绍在 Windows 7 操作系统上安装 Logstash 6.6.0 的方法与过程。


版本说明

  • Oracle JDK 1.8.0_201
  • logstash-6.6.0.zip

安装步驟

  1. 下载 Logstash 6.6.0 安装版本。
  2. 解压缩到本地,进入安装路径下 bin 目录,新建文件 logstash_default.conf
input {
  stdin{
  }
}

output {
  stdout{
  }
}
  1. 继续在 bin 目录下新建文件 run_default.bat
logstash -f logstash_default.conf
  1. 双击运行 run_default.bat,等待启动日志打印完成。
D:\Dev\ELK\logstash-6.6.0\bin>logstash -f logstash_default.conf
Sending Logstash logs to D:/Dev/ELK/logstash-6.6.0/logs which is now configured
via log4j2.properties
[2019-02-15T11:28:07,769][INFO ][logstash.setting.writabledirectory] Creating di
rectory {:setting=>"path.queue", :path=>"D:/Dev/ELK/logstash-6.6.0/data/queue"}
[2019-02-15T11:28:07,784][INFO ][logstash.setting.writabledirectory] Creating di
rectory {:setting=>"path.dead_letter_queue", :path=>"D:/Dev/ELK/logstash-6.6.0/d
ata/dead_letter_queue"}
[2019-02-15T11:28:07,928][WARN ][logstash.config.source.multilocal] Ignoring the
 'pipelines.yml' file because modules or command line options are specified
[2019-02-15T11:28:07,946][INFO ][logstash.runner          ] Starting Logstash {"
logstash.version"=>"6.6.0"}
[2019-02-15T11:28:07,981][INFO ][logstash.agent           ] No persistent UUID f
ile found. Generating new UUID {:uuid=>"0b82cf1c-e133-4407-8b8a-fad3f652d4cd", :
path=>"D:/Dev/ELK/logstash-6.6.0/data/uuid"}
[2019-02-15T11:28:19,097][INFO ][logstash.pipeline        ] Starting pipeline {:
pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipelin
e.batch.delay"=>50}
[2019-02-15T11:28:19,302][INFO ][logstash.pipeline        ] Pipeline started suc
cessfully {:pipeline_id=>"main", :thread=>"#<Thread:0x14a251cf run>"}
The stdin plugin is now waiting for input:
[2019-02-15T11:28:19,366][INFO ][logstash.agent           ] Pipelines running {:
count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
[2019-02-15T11:28:19,811][INFO ][logstash.agent           ] Successfully started
 Logstash API endpoint {:port=>9600}
  1. 打开浏览器,输入 http://localhost:9600/,页面显示以下信息则说明安装成功。
{
"host": "CTUY7JWX6208621",
"version": "6.6.0",
"http_address": "127.0.0.1:9600",
"id": "0b82cf1c-e133-4407-8b8a-fad3f652d4cd",
"name": "CTUY7JWX6208621",
"build_date": "2019-01-24T12:13:56+00:00",
"build_sha": "e4390be7e4d511af9d48bc503c9dcc15b03d3bce",
"build_snapshot": false
}

Logstash Reference

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容