Installation

How to disable an index temporarily?

vrmandadi
Builder

I have an index that I want to disable for some time as a large amount of data is coming from it and it caused a license warning.

Please advise.

Labels (1)
1 Solution

Vijeta
Influencer

@vrmandadi In your indexes.conf under your index stanza , just add disabled = true.
Or via UI go to Indexes -> Action -> Disable

View solution in original post

Vijeta
Influencer

@vrmandadi In your indexes.conf under your index stanza , just add disabled = true.
Or via UI go to Indexes -> Action -> Disable

vrmandadi
Builder

Thank You for you response .Does this setting helps to reduce the license usage?

0 Karma

Vijeta
Influencer

If the data is not indexed it won’t be counted against license .

0 Karma

vrmandadi
Builder

Thank you.So disabling will not get indexed right?..Just to confirm

0 Karma

Vijeta
Influencer

Yes it won’t get indexed.

0 Karma

Vijeta
Influencer

Also if you have the index enabled again then any data queued up in forwarder will get indexed to it .

0 Karma

vrmandadi
Builder

So the events dont drop , are they still queued ? .If I want to ignore them and only get those events from the time it is enabled ,how can I do that

0 Karma

vrmandadi
Builder

Hello @hmarkus

Thank you for your mail .We have a indexer cluster so on which box do I need to disable it.If I want to disable via CLI .What is that I need to add to that index is it enabled = 1 for that index

0 Karma

hmarkus
Explorer

As @Vijeta mentioned, you can also disable it by adding the disabled = true to your indexes.conf.
In an index cluster I would add the line in the indexes.conf in your app on the Cluster Master, that is used to configure all indexes in your Cluster (in $SPLUNK_HOME/etc/master-apps/), and than push your new configuration bundle.
On a single instance you could use the CLI

0 Karma

vrmandadi
Builder

@hmarkus .Thank you for your reply .Once I enable back do i get the old events that were already indexed and do I get the data during the index disabled time .

If I want to ignore the data which is queued ,how can I do that and I do get the data whihc was indexed before the index is disabled right?

Thanks in Advance

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...