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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...