Knowledge Management

Trying to reduce space by reducing splunkd_access.log .4 & .5 as well as web_service.log .

cevyn
Explorer

I'm trying to reduce space by reducing splunkd_access.log .4 & .5 as well as web_service.log .4 & .5 .

Doc is clear on metrics.log and I find that item in log.cfg . However this is not an exact match for web_service.log .

I did find an entry
appender.accesslog.fileName=${SPLUNK_HOME}/var/log/splunk/splunkd_access.log
appender.accesslog.maxFileSize=25000000 # default: 25MB (specified in bytes).
appender.accesslog.maxBackupIndex=5 .

Tags (2)

MuS
Legend

Hi cevyn,

you found the place to change it. You can put log.cfg settings into a local file, log-local.cfg file, residing in the same directory as log.cfg. The settings in log-local.cfg take precedence. And unlike log.cfg, the log-local.cfg file doesn't get overwritten on upgrade.

hope this helps ...

cheers, MuS

cevyn
Explorer

Thanks I did not pick up on that from any doc.

Do you have any ideas specifically on web_service.log since it does not seem to be listed in that file at all?

0 Karma

cevyn
Explorer

Maybe I was less than clear first time around because of trying to figure out how to enter the question.

How do I limit number of web_service.log down from 5 to 3? like th instruction for metric logs.
Is this really not documented somewhere?

0 Karma
Get Updates on the Splunk Community!

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...