Monitoring Splunk

It is safe to change all "maxBackupIndex" keys directly in /etc/log.cfg or there is a better way to achieve that goal?

linspec9721
Explorer

Hello folks,

I am new to splunk. We need to change log indexing from 5 to 3 on Splunk Enterprise for Windows. 

It is safe to change all "maxBackupIndex" keys directly in /etc/log.cfg or there is a better way to achieve that goal?

Thank you

0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

Hi

the official way is to create local-log.cfg file where to do your local changes. Another way is use CLI like

splunk set log-level TailingProcessor -level DEBUG

https://docs.splunk.com/Documentation/Splunk/9.0.1/Troubleshooting/Enabledebuglogging

r. Ismo

View solution in original post

linspec9721
Explorer

ok thank you all

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I suppose it depends on what you mean by "safe".  Yes, you can do it without harming your Splunk installation.  Keep in mind a couple of things before you make the change: 1) you will be changing a delivered file so you will starting seeing "File Integrity" messages in Splunk; and 2) upgrading Splunk will overwrite your changes to log.cfg.

---
If this reply helps you, Karma would be appreciated.

isoutamo
SplunkTrust
SplunkTrust

Hi

the official way is to create local-log.cfg file where to do your local changes. Another way is use CLI like

splunk set log-level TailingProcessor -level DEBUG

https://docs.splunk.com/Documentation/Splunk/9.0.1/Troubleshooting/Enabledebuglogging

r. Ismo

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...