Getting Data In

How to control splunk logs splunkd_stderr.log & splunkd-utility.log filling up disk space

anantdeshpande
Path Finder

Hi,
I have installed Splunk having very limited space. I am able to manage other logs my modifying /etc/log.cfg file.
However, do not find any parameter to rotate/control splunkd_stderr.log & splunkd-utility.log.

Do we have any separate parameter/file to manage these Splunk logs?

Tags (1)
0 Karma

ddrillic
Ultra Champion

For this specific index you can allocate (a lot) less than the 1/2 terabyte assigned, by default, for each index.

To begin with, you can run the following to know how much each index consumes -

| rest /services/data/indexes 
| eval perc=(currentDBSizeMB * 100 / maxTotalDataSizeMB ) 
| table title currentDBSizeMB maxTotalDataSizeMB perc

bpitts2
Path Finder

I downvoted this post because this is a completely irrelevant answer.

0 Karma

ddrillic
Ultra Champion

Oh oh - really sorry ; -) but truly it's really relevant.

0 Karma

lukejadamec
Super Champion

I agree. What is the point of decreasing the size of the log files if they are all indexed with a max size of 1/2 TB anyway?

0 Karma

bpitts2
Path Finder

Hello,

As you mentioned most logs can be controlled from /etc/log.cfg, however there are some logs such as splunkd_stderr.log that are effectively "hard coded" and cannot be changed. However, it was suggested that you could use a symbolic link to move the files to your preferred location.

Reference:
https://answers.splunk.com/answers/9879/possible-to-move-splunks-log-folder-splunk-home-var-log-splu...

Best Regards,
BPitts2

0 Karma

anantdeshpande
Path Finder

Thank you,
As last solution will write script or create symbolic link.

0 Karma

anantdeshpande
Path Finder

Looks like we can manage splunkd-utility.log by changing parameter in log-utility.cfg.
Any how its 5 MB and will limit to 1 rotation than 5.

appender.A1.fileName=${SPLUNK_HOME}/var/log/splunk/splunkd-utility.log

appender.A1.maxFileSize=5000000 # default: 5MB (specified in bytes).

appender.A1.maxBackupIndex=5

bpitts2
Path Finder

Good to know, thanks!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

What’s New in Splunk AI: Volume 02

Welcome to the second edition of “What’s New in Splunk AI” where we look at the latest and greatest updates, ...

Splunk App Dev Quarterly Roundup: AI, Agents, and Innovation!

Another quarter, another wave of innovation. From complex integrations to pushing the limits ...

Value Insights: Now Generally Available in the CMC

Organizations are under pressure to move faster, control cost, expand AI adoption, and prove value with more ...