You can install Logstash by using quick installation or custom installation methods.

Background information

When you have other requirements for logstroudsburg's installation configuration, you can choose how you want to customize the installation, modify the default installation configuration.


  1. Install Java
    1. Download the installation package.

      Go to the Java official website to  download JDK for installation.

    2. Sets the environment variable.

      Add or modify environment variables in advanced system settings.

      • PATH:  C:\Program Files\Java\jdk1.8.0_73\bin 
      • CLASSPATH: C:\Program Files\Java\jdk1.8.0_73\lib;C:\Program Files\Java\jdk1.8.0_73\lib\tools.jar
      • JAVA_HOME: C:\Program Files\Java\jdk1.8.0_73
    3. Perform verification.

      Run PowerShell  or cmd.exe for  verification.

      PS C:\Users\Administrator> java -version
      java version "1.8.0_73"
      Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
      Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)
      PS C:\Users\Administrator> javac -version
      javac 1.8.0_73
  2. Install Logstash
    1. Download the installation package from the official website.

      Select version 2.2 or later on the Logstash  home page.

    2. Install Logstash.

      Extract to the  C:\logstash-2.2.2  directory.

      Confirm the Logstash startup program path is C:\logstash-2.2.2\bin\logstash.bat .

  3. Install the plug-in used by Logstash to write logs to Log Service
    Install the plug-in online or offline based on the network environment where the machine resides.
    • Online installation

      The plug-in is hosted by RubyGems. For more information, see here .

      Run  PowerShell  or  cmd.exe to go to the Logstash  installation directory.
      PS C:\logstash-2.2.2> .\bin\plugin install logstash-output-logservice
    • Offline installation

      Download from the official website. Go to the  logstash-output-logservice page and click  Download  in the lower-right corner.

      If the machine from which logs are collected cannot access the Internet, copy the downloaded gem package to the  C:\logstash-2.2.2 directory of the machine.  Run  PowerShell or    cmd.exe to go to the Logstash  installation directory. Perform the following command to install lLogstash:
      PS C:\logstash-2.2.2> .\bin\plugin install C:\logstash-2.2.2\logstash-output-logservice-0.2.0.gem
    • Perform verification.
      PS C:\logstash-2.2.2> .\bin\plugin list

      Verify that logstash-output-logservice exists in  the installed plug-in list of the machine.

  4. Install NSSM
    Download from the official website. Go to the NSSM official website to download the NSSM installation package.

    fter you download the installation package to the local machine, extract it to the  C:\logstash-2.2.2\nssm-2.24.