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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...