|
|
#使用源码下载 chown -R qiwei:qiwei log*
#进入目录
cd /opt/logstash-5.3.0
#运行测试, -e 表示直接使用命令行命令
$ bin/logstash -e 'input { stdin { } } output { stdout {codec=>rubydebug} }'
Sending Logstash's logs to /opt/logstash-5.3.0/logs which is now configured via log4j2.properties
[2017-04-10T19:20:35,972][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.queue", :path=>"/opt/logstash-5.3.0/data/queue"}
[2017-04-10T19:20:36,047][INFO ][logstash.agent ] No persistent UUID file found. Generating new UUID {:uuid=>"39a7a7be-bf94-45a5-8be6-10304fa9d16a", :path=>"/opt/logstash-5.3.0/data/uuid"}
[2017-04-10T19:20:38,738][INFO ][logstash.pipeline ] Starting pipeline {"id"=>"main", "pipeline.workers"=>1, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>125}
[2017-04-10T19:20:38,883][INFO ][logstash.pipeline ] Pipeline main started
The stdin plugin is now waiting for input:
[2017-04-10T19:20:39,282][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
hello world
2017-04-10T11:21:25.171Z elk.infoclue.net hello world
#退出
CRTL-D |
|
|