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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...