Archive

How to create new indexes in Splunk

Path Finder

Hi,

I need to create new indexes from the view in a data warehouse. I need to create that in Splunk using its GUI itself.
Can anyone help me to create that?

I am creating the index in Splunk for the first time.
So please help me with step by step process of creating the indexes using Splunk GUI.

Regards,
sundar

0 Karma

Explorer

open ssh session and go to
/opt/splunk/etc/deployment-apps/all_indexes/local/indexes.conf

edit indexes.conf

[index name]
homePath = $SPLUNK_DB/index name/db
thawedPath = $SPLUNK_DB/index name/thaweddb
coldPath = $SPLUNK_DB/index name/colddb

coldToFrozenDir = /app/archive/index name

maxDataSize = auto
maxHotBuckets =
maxWarmDBCount =
maxTotalDataSizeMB =
frozenTimePeriodInSecs =

0 Karma

Communicator

In a standalone instance, you can do this via the GUI. In a clustered environment, you cannot. You should do this via a cluster bundle push from the cluster master, and within that bundle you'd edit indexes.conf within an app (I'd suggest org_all_indexes) to include the index definitions.

0 Karma

Path Finder

Settings (navbar, top right(ish)) > Data > Indexes > new Index (green button top right)

alt text

0 Karma

Community Manager
Community Manager

Hi @umsundar2015 ,

Did you have a chance to check out an answer? If it worked, please resolve this post by approving it! If your problem is still not solved, keep us updated so that someone else can help you.

Thanks for posting!

0 Karma

Contributor

Hello Sundar,

There are detailed instructions for creating indexes via Splunk Web, under "Use Splunk Web", located here: https://docs.splunk.com/Documentation/Splunk/6.5.3/Indexer/Setupmultipleindexes

0 Karma

Builder

Through GUI if you want to create - settings -> Indexes -> New Index (Fill details).
But this will create the index in the search head instance and not on indexers if you are logged onto to Search head GUI. You have to login to Indexer GUI and then follow the above steps.

Create index using REST endpoint using CURL - curl -k -u <USER>:<PASS> https://indexer:port/servicesNS/<user>/<app\_to\_save\_settings>/data/indexes -d name=<newindex>

Create index using REST endpoint in clustered environment - https://answers.splunk.com/answers/387133/how-to-create-index-using-rest-api-in-a-clustered.html

State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!