Article From:

1: install JAVA8

         Add PPA

   sudo add-apt-repository ppa:webupd8team/java
   sudo apt-get update
Install oracle-java-installer
 sudo apt-get install oracle-java8-installer
Setting system default JDK
sudo update-java-alternatives -s java-8-oracle

javaInstallation test
java -version
javac -version

Two install elasticsearch

(If CURL is not installed, run: sudo apt install curl

sudo apt-get install openjdk-8-jre
curl -L -O
sudo dpkg -i elasticsearch-6.2.4.deb
sudo /etc/init.d/elasticsearch start


elasticsearchInstallation path: * /etc/elasticsearch/elasticsearch.yml

(Note: VI’s problems are dealt with:

                 sudo apt-get remove vim-common

             sudo apt-get install vim


Install logstash:
sudo apt-get install openjdk-8-jre
curl -L -O
sudo dpkg -i logstash-6.2.4.deb
Do not start, do some configuration

/etc/logstash/conf.d Below
input {
beats {
port => 5044

# The filter part of this file is commented out to indicate that it is
# optional.
# filter {
# }

output {
elasticsearch {
hosts => “localhost:9200”
manage_template => false
index => “%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}”
document_type => “%{[@metadata][type]}”

./bin/logstash-plugin update logstash-input-beats

Start logstash:
sudo /etc/init.d/logstash start(This order is not good for use)

In this directory: /usr/share/logstash;
./bin/logstash -f logstash.conf( Create logstash.conf under this directory.)

Install Kibana:
curl -L -O
tar xzvf kibana-6.2.4-linux-x86_64.tar.gz
cd kibana-6.2.4-linux-x86_64/

install filebeat:
curl -L -O
sudo dpkg -i filebeat-6.2.4-amd64.deb


#—————————– Logstash output ——————————–
hosts: [“”]


Leave a Reply

Your email address will not be published. Required fields are marked *