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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...