Monitoring Splunk

monitoring windows services

wingfieldj
Explorer

how do you monitor a windows server service that is set to start at boot time and flag it if it stops or did not start? For instance monitoring the MSExchangeFrontEndTransport service every 20 minutes and alert if it is not running.

Tags (1)
0 Karma

sandeepmakkena
Contributor

Here is are a couple of ways you can do it.

https://answers.splunk.com/answers/7193/easy-way-to-check-if-a-windows-service-is-running.html
https://answers.splunk.com/answers/7193/easy-way-to-check-if-a-windows-service-is-running.html

If you are getting through logs, you can do it by using transaction command or other commands to check for a string service_start after service_stop is found, if not you can generate an alert.

I hope this helps, thanks!

0 Karma

eddieddieddie
Path Finder

Here's a couple of ways of getting a list of Windows services and the status of these services into Splunk:

Windows Host Monitoring

In the inputs.conf file add a stanza like this:

[WinHostMon://Service]
interval = 600
disabled = 0
type = Service
index = windows

This will collect a list of services, and status, every 10 minutes, from the system running the Splunk Forwarder.

More documentation here: https://docs.splunk.com/Documentation/Splunk/9.1.1/Admin/Inputsconf#Windows_Host_Monitoring

WMI

Create a WMI.conf file and add the following stanza:

[WMI:WindowsServiceState]
interval = 600
wql = select Name, DisplayName, Description, State from Win32_Service
disabled = 0
index = windows

This will collect the same data as the previous example, however its more customisable - for example you can use WMI to narrow down to collecting data on only specific services, or even querying a remote server.

More documentation here: https://docs.splunk.com/Documentation/Splunk/7.3.1/Admin/Wmiconf

0 Karma

sandeepmakkena
Contributor

If this is helpful, accept the answer, please

0 Karma

sandeepmakkena
Contributor

How are you getting those events into Splunk?

0 Karma

wingfieldj
Explorer

I do not think i have the input yet. i am hoping that the Splunk add-on for MS Windows will help with this.

0 Karma

patterc
Path Finder

how'd it work out?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...