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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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