Getting Data In

Is it essential to restart splunk universal forwarder after deletion of monitored logs?

dantimola
Communicator

Hello fellow ninjas,

Good day. I'd like to ask if splunk uf restart is essential after I deleted a log file that is being monitored by splunk? Because, every time I delete the file, splunk is still reading it resulting high resources usage.
alt text

Thanks,
Dan

Tags (1)
0 Karma

koshyk
Super Champion

which version of SplunkUF you using? it might be a bug sometimes

0 Karma

dantimola
Communicator

Hi, its universal forwarder 6.2.6 and 6.4.0

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi dantimola,
no, If you change some log file you can continue to use your UF without restarting it.
you need to restart Splunk Universal Forwarder only if you change some .conf file.

Bye.
Giuseppe

0 Karma

dantimola
Communicator

Thanks for your answer. My case is that, even we deleted the log file, splunk is still reading it as seen on the screenshot I've provided. What could be the problem?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi dantimola,
until you don't disable it, Splunk input is waiting for a new file or variation of it.

Bye.
Giuseppe

0 Karma

dantimola
Communicator

I saw migration.conf in the uf. Is it possible that it was the culprit why the issue is occuring?

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 ...