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!

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