• notice
  • Congratulations on the launch of the Sought Tech site

Logstash installation and use in ELK

    Logstash is a real-time data collection engine that can collect various types of data and analyze, filter and summarize them. Analyze and filter out the matching data according to your own conditions and import it into the visualization interface. Logstash recommends using java1.8.Some versions are not supported, such as java1.9. The download address of logstash: https://www.elastic.co/cn/downloads/logstash The latest version is 7.7.1, which is the same as the Elasticsearch version number.

    user@u007:/opt/$ mkdir /opt/logstash; cd /opt/logstash;
user@u007:/opt/logstash$ wget https://artifacts.elastic.co/downloads/logstash/logstash-7.7.1.tar.gz
user@u007:/opt/logstash$ tar zxvf logstash-7.7.1.tar.gz
user@u007:/opt/logstash$ cd logstash-7.7.1/
#You can start logstash directly
user@u007:/opt/logstash/logstash-7.7.1$ bin/logstash -e'input {stdin{}} output {stdout{}}'
......
[2020-06-18T13:44:06,015][INFO ][logstash.agent] Successfully started Logstash API endpoint {:port=>9600}
#At this time input data, will return
this is a test
{
    "@timestamp" => 2020-06-18T05:45:26.613Z,
          "host" => "n215",
      "@version" => "1",
       "message" => "this is a test"
}
#Start logstash and output data to elasticsearch
user@u007:/opt/logstash/logstash-7.7.1$ bin/logstash -e'input {stdin{}} output {elasticsearch {hosts => ["10.21.45.25:9200"]} }'
......
[2020-06-18T13:48:53,680][INFO ][logstash.agent] Successfully started Logstash API endpoint {:port=>9600}
#After entering the data at this time, you will see the data in the elastic logstash index library.
this is a test.

Tags

Technical otaku

Sought technology together

Related Topic

1 Comments

author

lipitor 80mg without preion & lt;a href="https://lipiws.top/"& gt;atorvastatin 10mg without preion& lt;/a& gt; purchase atorvastatin

Wwfwbu

2024-03-09

Leave a Reply

+