ubuntu16.04系统中怎么安装logstash
更新:HHH   时间:2023-1-7


ubuntu16.04系统中怎么安装logstash,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

下载

cd /app
wget https://artifacts.elastic.co/downloads/logstash/logstash-7.3.1.tar.gz
tar zxvf logstash-7.3.1.tar.gz

测试

bin/logstash -e 'input { stdin { } } output { stdout {} }'

root@localhost:/app/logstash-7.3.1# bin/logstash -e 'input { stdin { } } output { stdout {} }'
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to /app/logstash-7.3.1/logs which is now configured via log4j2.properties
[2019-09-11T14:46:01,604][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-09-11T14:46:05,986][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge] A gauge metric of an unknown type (org.jruby.RubyArray) has been create for key: cluster_uuids. This may result in invalid serialization.  It is recommended to log an issue to the responsible developer/development team.
The stdin plugin is now waiting for input:
1
/app/logstash-7.3.1/vendor/bundle/jruby/2.5.0/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
{
      "@version" => "1",
    "@timestamp" => 2019-09-11T06:46:33.337Z,
       "message" => "1",
          "host" => "localhost"
}
2
{
      "@version" => "1",
    "@timestamp" => 2019-09-11T06:46:43.956Z,
       "message" => "2",
          "host" => "localhost"
}

关于ubuntu16.04系统中怎么安装logstash问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注天达云行业资讯频道了解更多相关知识。

返回大数据教程...