Getting Data In

Will Splunk automatically create an index listed in inputs.conf?

Justin_Grant
Contributor

If our app's inputs.conf uses an index other than "main" (e.g. a custom index for our app) does our app's setup UI (or the user via manual changes) need to create the index? Or will Splunk automatically create the index if it doesn't already exist?

Tags (2)

Nicholas_Key
Splunk Employee
Splunk Employee

A new index will not be created automatically as far as I know.

The indexes.conf needs to be configured to indicate a new index.

Some of the important properties in the stanza include

[<NAME_OF_INDEX>]
homePath = $SPLUNK_DB/<NAME_OF_INDEX>/db
coldPath = $SPLUNK_DB/<NAME_OF_INDEX>/colddb
thawedPath = $SPLUNK_DB/<NAME_OF_INDEX>/thaweddb

gkanapathy
Splunk Employee
Splunk Employee

No it will not be created. Events sent to an unconfigured index will usually be discarded.

Nicholas_Key
Splunk Employee
Splunk Employee

The error message will be shown in SplunkWeb when you restart Splunk telling you that the particular index is not configured or disabled.

0 Karma

Lowell
Super Champion

Wolverine, do you see that message when events are being indexed and discarded, or whenever you setup an input with an undefined index?

0 Karma

the_wolverine
Champion

At least in version 4.1.2 you'll now see a banner telling you that events are being sent to an unconfigured or disabled index.

0 Karma
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 ...