In this chapter, we converted an inline visualization into a customized SimpleSplunkView
. As we saw, the benefits of this conversion are incredible. The modular ability allows the same code to be used over and over, without the likelihood of making mistakes in the copy-and-paste process. Once you've included the JavaScript in the base RequireJS stack, you can take advantage of the objects and instantiate the objects wherever you like.
After JavaScript views, we dove into modular inputs. Modular inputs give us the ability to reuse a script, while providing the end user with a simple interface with which to do the configuration as required. They can also be configured to take advantage of encrypted credentials within the script, securing your credentials from the casual observer. We discussed portions of the script and how they relate to the total implementation.
We discussed the KV Store and the benefits of using it versus file-based lookups. We explored how to create them and how to...