Deployment Architecture

How to find stopped service ?

ethammis
Engager
  • I have windows service called "ess". Due to network glitch the service is entering into stopped state and start state. Since the windows event is generating for delivery network glitch an event is recorded in splunk.

But the service ess is really down, and never entered into running state we need to be alerted.

I want to write splunk to alert only when the service ess went into stopped state but never entered into running state for 25 hosts. Same service is running on 25 hosts and all servers has network glitches.

Labels (2)
0 Karma
1 Solution

venkateshparank
Path Finder

Try something below:

index=<indexname> ("ess service")
|transaction host startswith="The ess service entered the stopped state." endswith="The ess service entered the running state." maxspan=30m
|search NOT <field>="The ess service entered the running state."
|table host

View solution in original post

venkateshparank
Path Finder

Try something below:

index=<indexname> ("ess service")
|transaction host startswith="The ess service entered the stopped state." endswith="The ess service entered the running state." maxspan=30m
|search NOT <field>="The ess service entered the running state."
|table host

ethammis
Engager

How long are you prepared to wait for the service to come up again?

- Within 10min, if service is not coming up then need alert.

i.e. an event "The ess service entered into running state" will be logged

Are you looking to alert if all the servers don't come back up within a certain time, or if any one of them doesn't come back up?
Any server out of 25, if the service is not running, then need alert

Are events generated when the service is up, and how regularly do these events occur?

As soon the service started an event will be generated, "The ess Service entered into running state"

Can there be periods when no events are generated but the service is still to be considered up?

No, there will be definitely an event will be generated once the service brought up

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

How long are you prepared to wait for the service to come up again? Are you looking to alert if all the servers don't come back up within a certain time, or if any one of them doesn't come back up? Are events generated when the service is up, and how regularly do these events occur? Can there be periods when no events are generated but the service is still to be considered up?

0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...