Getting Data In

Error: Invalid key stanza

02sangeet
Engager

Hi Team,
I am getting below error in spluk local insatance :

Error details :

            Invalid key in stanza [tcp01] in C:\Program Files\Splunk\etc\app

s\XYZ_test_local\default\indexes.conf, line 5: maxTotalDatasize (value: 1024MB
).
Invalid key in stanza [tcp01] in C:\Program Files\Splunk\etc\app
s\XYZ_test_local\default\indexes.conf, line 7: maxWarmDBcount (value: 4).

          Your indexes and inputs configurations are not internally consistent

tent.

Indexes.conf :

[tcp01]
coldPath = $SPLUNK_DB/tcp01/colddb
homePath = $SPLUNK_DB/tcp01/db
thawedPath = $SPLUNK_DB/tcp01/thaweddb
maxTotalDatasize = 1024MB
maxHotSpanSecs = 243264
maxWarmDBcount = 4
maxHotbuckets = 3
disabled  = false

[monitor://C:\Program Files\Splunk\XYZ_Alerts*]
sourcetype=st01
index=tcp01
blacklist=.(gz|zip)$
initCrcLength=750

Tags (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @02sangeet,
about the first error, the correct paramer is:

maxTotalDatasizeMB = 1024

as you can see at https://docs.splunk.com/Documentation/Splunk/8.0.1/Admin/Indexesconf

About the second, I don't see any formal error, are you sure of value of 4? default is 300!
check if there's a special char like tab.

Ciao.
Giuseppe

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Case is significant. The correct attribute names are maxTotalDataSizeMB and maxWarmDBCount.

The value of maxWarmDBCount should be an integer. No "MB" suffix.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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