ELK Centralized log analysis Windows Deployment combat

Source: Internet
Author: User
Tags kibana logstash

Step by step

1. Download the Software

Elasticsearch:https://download.elasticsearch.org/...p/elasticsearch/2.0.0/elasticsearch-2.0.0.zip
Logstash:https://download.elastic.co/logstash/logstash/logstash-2.0.0.zip
Kibana:https://download.elastic.co/kibana/kibana/kibana-4.2.0-windows.zip

2. Unzip the downloaded software separately, Elasticsearch,logstash,kibana can be placed in a unified folder

3. Download the JDK, install the Java environment, add the installation path to the JAVA_HOME environment variable

4. Configure Logstash, CD to the lower bin directory of the Logstash folder

Create profile logstash.conf, the content is as follows, specifically not explained (from the TCP 5544 Port received, sent to the ES server, a very simple configuration)

Input {  TCP {    port = 5544  }}output {  Elasticsearch {    hosts = = ["localhost:9200"]  }}

5. Install Elasticsearch for Windows services

CD to the bin directory of the Elasticsearch folder

CMD running the service install, will prompt for installation success

CMD running Service Manager will pop up the services management interface, you can set up auto start and start it.

The browser accesses the 127.0.0.1:9200, and a successful JSON appears

6 Installing Logstash for Windows services

CD to Logstash folder under Bin directory

Create a Run.bat

Logstash.bat agent-f logstash.conf

Download NSSM

Https://nssm.cc/release/nssm-2.24.zip

Unzip the copy Nssm-2.24\win64 directory under Nssm.exe to Logstash Bin directory

CMD run NSSM install Logstash

In the Popup interface set path for the Run.bat,details tab to set the display name, the Dependencies tab sets the dependent service elasticsearch-service-x64

Finally click Install Service installation succeeded

7. Install Kibana for Windows services

Copy the Nssm file as before, the installation service path is Kibana.bat, and the dependencies can be set logstash,elasticsearch-service-x64

7.1 Optional installation of reverse proxy software The ARR module of the Nginx,iis 5601-Port Shield

8. In the Control Panel, start the previous installation of the three services, next we can test the next

Telnet 127.0.0.1 5544 just lose something, and enter.

Opening http://localhost:5601/with a browser prompts you to create INDEX, which you can create by time. On the Discover tab you will see the meaningless ASCII characters you just tapped in Telnet

Very simple not, production environment or to operations to deploy a Linux version of it

After more complex configuration and practice handed to everyone to explore, hehe

ELK Centralized log analysis Windows Deployment combat

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.