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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...