How to install ELK in local windows machine


As google search is "ELK" is the acronym for three open source projects: Elasticsearch, Logstash, and Kibana. ... Kibana lets users visualize data with charts and graphs in Elasticsearch. The Elastic Stack is the next evolution of ELK.



Download

Download Logstash , ElasticSearch and Kibana from the website( https://www.elastic.co/ ).


https://www.elastic.co/


Updating the Logstash config file

Logstash – in the below file folder create - logstash-simple.conf

C:\Users\Sandeep Rana\Documents\LogAnalysis\logstash-6.2.1\bin\logstash-simple.conf

      input { 
            file {
              path =>"C:/Users/Sandeep Rana/Documents/workspace/log/system.log"
                       start_position => "beginning"
            }
         }
         output {
           elasticsearch { 
           hosts => ["localhost:9200"] 
           index => log
           }
           stdout { codec => rubydebug }
         }
         
        


Updating the elasticsearch.yml file

ElasticSearch – in the below file folder update – elasticsearch.yml

C:\Users\Sandeep Rana\Documents\LogAnalysis\elasticsearch-6.2.1\config\elasticsearch.yml

        # ---------------------------------- Network -----------------------------------
                #
                # Set the bind address to a specific IP (IPv4 or IPv6):
                #
                #network.host: localhost
                #
                # Set a custom port for HTTP:
                #
                #http.port: 9200
                #
                # For more information, consult the network module documentation.
           
          


Updating the kibana.yml file

Kibana – in the below file folder update – kibana.yml

C:\Users\Sandeep Rana\Documents\LogAnalysis\kibana-6.2.1-windows-x86_64\config\kibana.yml

        # The URL of the Elasticsearch instance to use for all your queries.
            #elasticsearch.url: "http://localhost:9200"
           
          


Start the ElasticSearch & Kibana

Then start ElasticSearch and kibana from the bin folder with their bat files.




Start LogStash

Then start LogStash from the bin folder with below command-

Logstash -f logstash-simple.conf



Hit the URL & start searching

Open kibana by hitting below url in the browser-

http://localhost:5601/



*Link for more insight - https://www.elastic.co/


Click to add comment