Deployment Architecture

Can I configure a Splunk Forwarder to forward all log data before shutting down?

danrea
New Member

If I am about to shutdown my system, how can I make sure that the Splunk Forwarder has forwarded all log data off of the instance? In this case, the logs will be deleted when the system shuts down, so I want to make sure no log data goes missing.

0 Karma

iandrews_splunk
Splunk Employee
Splunk Employee

You can't tell splunk to prevent a system from shutting down. However, you can run something like

tail -100 /opt/splunkforwarder/var/log/splunk/metrics.log | grep queue | grep tcpout

and make sure "current_size" = 0 before shutting it down.

0 Karma

ansif
Motivator

What you mean by "my System",Is it a UF or Indexer?

0 Karma
Get Updates on the Splunk Community!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...