Deployment Architecture

How to create new indexes in Splunk

umsundar2015
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

Eldenhanjoel
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

martynoconnor
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

hallt3
Path Finder

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

alt text

0 Karma

evania
Splunk Employee
Splunk Employee

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

adayton20
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

dineshraj9
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

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...