溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

ubuntu16.04系統(tǒng)中怎么安裝logstash

發(fā)布時間:2021-06-18 15:29:50 來源:億速云 閱讀:249 作者:Leah 欄目:大數(shù)據(jù)

ubuntu16.04系統(tǒng)中怎么安裝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系統(tǒng)中怎么安裝logstash問題的解答就分享到這里了,希望以上內容可以對大家有一定的幫助,如果你還有很多疑惑沒有解開,可以關注億速云行業(yè)資訊頻道了解更多相關知識。

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經查實,將立刻刪除涉嫌侵權內容。

AI