Getting Data In

Rotating/clearing out the Universal Forwarder's log files

Ricapar
Communicator

Part of the configuration we send to all of our Universal Forwarders instructs them to also send along their log files in $SPLUNK_HOME/var/log/splunk to the _internal index.

As such, we don't need/want to keep historical logs in that directory. Right now they're just taking up disk space.

Is there a configuration option on the Universal Forwarder we can set that'll have Splunk delete the old logs upon rotation?

0 Karma

lukejadamec
Super Champion

You can manipulate the configuration of the internal logging with the splunk/etc/log.cfg file. See this post, and the reference document it includes.
You can also make changes in Manager, but these changes are not persistent - they well go away after a Splunk restart.

http://answers.splunk.com/answers/959/how-can-i-control-the-size-and-number-of-splunks-internal-logs

Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...