Getting Data In

Question About SPL for SplunkD Shutdown

McMac84
Engager

Hi all, I am new to Splunk and am trying to look for logs that indicate that the SplunkD service shutdown. I am trying this, but I am not sure if there's a better one:

 

 

 

 

index=_internal sourcetype="splunkd" keywords "*shut"

 

 

 

Labels (1)
Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

That query is close.  Try this

index=_internal sourcetype="splunkd" source=*splunkd.log "shut*"

You also could try searching for component=shutdown

---
If this reply helps you, Karma would be appreciated.
0 Karma

schose
Builder

Hi,

i would go with this event in splunkd.log:

"IndexProcessor [5762669 MainThread] - request state change from=RUN to=SHUTDOWN_SIGNALED"

this is triggering Splunk to shutdown.. 

last events at shutdown looks like this:

10-28-2022 16:35:56.890 +0100 INFO  Shutdown [5763136 Shutdown] - shutting down level="ShutdownLevel_Duo2FAHttpClient"
10-28-2022 16:35:56.890 +0100 INFO  Shutdown [5763136 Shutdown] - shutting down level="ShutdownLevel_S3ConnectionPoolManager"
10-28-2022 16:35:56.891 +0100 INFO  Shutdown [5763136 Shutdown] - shutting down level="ShutdownLevel_WorkloadManager"
10-28-2022 16:35:56.894 +0100 INFO  loader [5762669 MainThread] - All pipelines finished


meaning shutdown could be measured with this:

index=_internal sourcetype="splunkd" source=*splunkd.log  (request state change from=RUN to=SHUTDOWN_SIGNALED) OR (Shutdown shutting down level=*) | transaction startswith=SHUTDOWN_SIGNALED | table _time duration

 

best regards,

Andreas
 

Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...