Installing Kibana on Windows Server 2012

To install Kibana on Windows Server 2012

Prerequisites:

  1. Before installing Kibana on Windows Server 2012, install the latest Oracle JDK and set the JAVA_HOME environment variable.
  2. Install NSSM

To install Kibana as a service on Windows Server 2012

  1. Download Kibana
  2. Click on Start and type Explorer and click File Explorer
  3. Right-click on Local Disk (C:) and select New > Folder and type Kibana
  4. Locate and double-click the Kibana downloaded file
  5. Double-click on the Kibana-<version> folder and select all the items
  6. Right-click on the items and click Copy
  7. Click on Local Disk (C:) and right-click on the Kibana folder and click Paste
  8. Click Start and type in cmd and right-click Command Prompt
  9. Click Run as administrator
  10. Type in cd\nssm and press Enter
  11. Type in nssm install kibana c:\kibana\bin\kibana.bat and press Enter
  12. Type in nssm set kibana AppDirectory C:\Kibana\bin and press Enter

 

Installing Logstash as a service on Windows Server 2012

Prerequisites:

  1. Before installing Logstash on Windows Server 2012, install the latest Oracle JDK and set the JAVA_HOME environment variable.
  2. Install NSSM

To install Logstash as a service on Windows Server 2012

  1. Download Logstash
  2. Click on Start and type Explorer and click File Explorer
  3. Right-click on Local Disk (C:) and select New > Folder and type Logstash
  4. Locate and double-click the Logstash downloaded file
  5. Double-click on the Logstash-<version> folder and select all the items
  6. Right-click on the items and click Copy
  7. Click on Local Disk (C:) and right-click on the Logstash folder and click Paste
  8. Click Start and type in notepad and click Notepad
  9. Type in the following:
  10. input { stdin { } }
    output {
      elasticsearch { hosts => ["localhost:9200"] }
      stdout { codec => rubydebug }
    }
  11. Click File > Save
  12. Browse to c:\Logstash\bin
  13. In File name type in config.json and click Save
  14. Click Start and type in cmd and right-click Command Prompt
  15. Click Run as administrator
  16. Type in cd\nssm and press Enter
  17. Type in nssm install logstash c:\logstash\bin\logstash.bat and press Enter
  18. Type in nssm set logstash AppParameters -f c:\Logstash\bin\config.json and press Enter
  19. Type in nssm set logstash AppDirectory C:\Logstash\bin and press Enter

 

Installing NSSM

To install NSSM

  1. Download NSSM
  2. Click on Start and type Explorer and click File Explorer
  3. Right-click on Local Disk (C:) and select New > Folder and type NSSM
  4. Locate and double-click the NSSM downloaded file
  5. Double-click on the NSSM-<Version> folder
  6. If you have a 32-bit operating system, double-click win32
  7. If you have a 64-bit operating system, double-click win64
  8. Right-click on the nssm.exe file and click Copy
  9. Click on Local Disk (C:) and right-click on the NSSM folder and click Paste

Installing Elasticsearch as a service on Windows Server 2012

Prerequisites:

Before installing Elasticsearch on Windows Server 2012, install the latest Oracle JDK and set the JAVA_HOME environment variable.

To install Elasticsearch as a service on Windows Server 2012

  1. Download Elasticsearch
  2. Click on Start and type Explorer and click File Explorer
  3. Right-click on Local Disk (C:) and select New > Folder and type Elasticsearch
  4. Locate and double-click the Elasticsearch downloaded file
  5. Double-click on the Elasticsearch-<version> folder and select all the items
  6. Right-click on the items and click Copy
  7. Click on Local Disk (C:) and right-click on the Elasticsearch folder and click Paste
  8. Click Start and type in cmd and right-click Command Prompt
  9. Click Run as administrator
  10. Type in cd\Elasticsearch and press Enter
  11. Type in cd bin and press Enter
  12. Type in elasticsearch-service.bat install and press Enter
  13. Ensure the command prompt reports a successful installation
Installing service : "elasticsearch-service-x64"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_121"
The service 'elasticsearch-service-x64' has been installed.

To set Elasticsearch to start automatically when Windows starts

  1. Click Start and type in services and click Services
  2. In the list, locate the Elasticsearch service
  3. Right-click on the service and click Properties
  4. Change Startup type to Automatic
  5. Click OK

To verify the Elasticsearch installation

  1. Click on Start and type in Internet Explorer and press Enter
  2. In the address bar, type in http://localhost:9200 and press Enter
  3. If a JSON file downloads the installation was succesful

Installing the latest Oracle JDK on Windows 10 and Windows Server 2012

To install the latest Oracle JDK on Windows 10 and Windows Server 2012

  1. Download the latest Oracle JDK
  2. Double-click the downloaded installer file
  3. If the User Account Control dialog appears, click Yes
  4. On the Welcome screen, click Next
  5. On the Select optional features screen, click Next
  6. On the Destination Folder screen, take not of the path and click Next
  7. On the Successfully Installed screen, click Close

To create a JAVA_HOME environment variable

  1. Click Start and type Explorer
  2. Right-click on This PC
  3. Click Properties
  4. Click Advanced system settings
  5. Click Environment Variables…
  6. Under System variables, click New…
  7. In Variable name, type JAVA_HOME
  8. In Variable value, type in the path noted in Step 6 in the previous installation section, for example, C:\Program Files\Java\jdk1.8.0_121
  9. Click OK
  10. Click OK
  11. Click OK