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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...