Creating a new Windows service for Kibana can be done using various methods. Here, I’ll provide steps using NSSM (Non-Sucking Service Manager), a commonly used tool to create services on Windows.
- Download NSSM:
- First, download NSSM from the official website: https://nssm.cc/download
- Extract the downloaded archive to a directory on your computer.
- Open PowerShell as Administrator:
- Right-click on PowerShell and select “Run as Administrator” to ensure elevated privileges.
- Use NSSM to Create the Service:
- Navigate to the directory where NSSM is located in PowerShell using
cd
- Navigate to the directory where NSSM is located in PowerShell using
cd C:\Users\Admin\Downloads\nssm-2.24-101-g897c7ad\nssm-2.24-101-g897c7ad\win64
.\nssm.exe install KibanaService "L:\Kibana\bin\kibana.bat"
KibanaService
: Name you want to assign to the service.
"L:\Kibana\bin\kibana.bat"
: Path to the Kibana batch file.
Configure Service Parameters (Optional):
Once the service is installed, you can configure it further using NSSM. To do this:
.\nssm.exe edit KibanaService
This command will open a GUI window where you can configure service settings like the startup directory, dependencies, logging, etc.
Start the Service:
After configuration, start the service
Start-Service KibanaService
Replace
KibanaService
with your service name if different.
Verify Service Status:
Check the status of the service to ensure it’s running without any issues
Get-Service KibanaService
This command will display the status of your Kibana service
NSSM simplifies the process of creating and managing services on Windows. Adjust the paths and service names as needed to match your specific Kibana installation. Running these commands in an elevated PowerShell window should enable you to create and manage the Kibana service effectively.