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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...