When logstash.bat is started in PowerShell, the Logstash process is working in the frontend. Logstash is generally used for testing configurations and debugging collections. Therefore, we recommend that you set Logstash as a Windows service after the debugging is passed so as to enable Logstash to work in the backend and start automatically when power-on.Besides setting Logstash as a Windows service, you can also start, stop, modify, and delete the service by using command lines. For more information about how to use NSSM, see. Add Logstash as a Windows serviceThis operation is generally performed when Logstash is deployed for the first time. If Logstash has been added, skip this step.
Now, there are a number of ways to install Logstash on Windows, but it cannot. It also talks about removing inbound and outbound properties, as they are no.
Run the following command to add Logstash as a Windows service. 32 -bit system C:logstash-2.2.2-winnssm-2.24win32nssm.exe install logstash 'C:logstash-2.2.2-winbinlogstash.bat' 'agent -f C:logstash-2.2.2-winconf'. 64.bit system C:logstash-2.2.2-winnssm-2.24win64nssm.exe install logstash 'C:logstash-2.2.2-winbinlogstash.bat' 'agent -f C:logstash-2.2.2-winconf'Start the serviceIf the configuration file in the Logstash conf directory is updated, stop the Logstash service and then start it again.
Elasticsearch Nssm
Here is my suggestion for the batch code: @echo off setlocal EnableDelayedExpansion set 'FolderBaseName=outputfolder' set 'BaseOutputFolder=%TEMP%%FolderBaseName%' set 'DropBoxFolder=%USERPROFILE%documentsdropboxmegaSync' md '%DropBoxFolder%' 2nul for%%I in (logo.png) do ( set 'OutputFolder=%BaseOutputFolder%%%nI' md '!OutputFolder!' 2nul for%%J in (.mp4.) do ( ffmpeg.exe -i '%%fJ' -i '%%fI' -filtercomplex overlay '!OutputFolder!%%nJ.mp4' )%ProgramFiles%WinRARRar.exe a -cfg.