Deployment Architecture

Warning! Deprecated index

joaopcarvalho
Explorer

Hi,

We have some cases were a certain solution was replaced by a newer solution (with different structure, different hosts, different log retrieval and different log info etc...). Therefore we now have two indexes, one old and one new, one active, the other as archive.

Since spunk doesn't have index alias, we thought if it's possible to add some kind of alert each time a user searches by the old index. A small message is enough, for instance something like 'this index was disabled on 01/01/2015 and replaced by index X', just like the one you get it you change your time range explicitly on your search.

Thank you.

P.S. - instead of the messages, a possible solution for this problem might be making the user search using a macro with the name of the system and the macro would expand to index=old Or index=new.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Adding such a macro is no problem at all, go to Settings -> Advanced Search -> Search Macros -> New, give it a name, and enter this as text:

(index=new OR index=old)

Then share this with the users that need it and teach them to use this in their search:

`your_macro_name`
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

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