Dashboards & Visualizations

Can I redirect index=main which is embedded into a dashboard to another index seamlessly to improve performance and data mgmt?

damonmanni
Path Finder

I have a customer who has been using/pointing to index=main for his searches and where his data is stored and also has this embedded in his dashboard queries, etc.

I would like to:
1) Create a new index that relates to his data better
2) move his data out of main and to that new index
3) and do not disturb his dashboards by asking him to change all his queries to point to the new index. Seamless for him.

All advice is appreciated.
cheers,
D

Tags (1)
0 Karma

niketn
Legend

@damonmanni, Following are the steps that you should try

1) Unless already present, create an eventtype knowledge object in Splunk for the index/source/sourcetype which all are applicable in your main search. If possible also create a macro to call the eventtype so that changes to index/source/sourcetype can be parameterized.

2) Stop Data Input to main index.

3) Use collect command to move data from old index to new. You have to make sure all data/fields in the old index are being moved to new index as is (you can do so by running collect command in testmode. PS: sourcetype by default is stash which does not cost against license unless it is changed. For your use case you need to also override sourcetype for data in the new index so that new data remains in sync with old data. So, you should be aware that such kind of data move with change in sourcetype would cost Splunk license volume.

4) Point eventtype to the new index and test your dashboard.

5) Have your data input start sending data to new index.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

damonmanni
Path Finder

Thank u once again sir. I am working on your advice.
cheers,
D

0 Karma

damonmanni
Path Finder

Niket,
Thanks so much for the quick and detailed answer. A bit above my head at the moment but I will learn & work at it and post back on results.

cheers,
Damon

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...