Install app, restart Splunk, open app, enter search, see your search expand, maybe wish you didn't.
This is the companion app to my .conf 2015 talk "Optimizing Splunk Knowledge Objects", the session includes lots of search expansion background information and some demos of the Knowledge Object Explorer - grab the Slides or the Recording.
The Knowledge Object Explorer will traverse your knowledge object tree step-by-step, expect a large number of requests made against your REST API when expanding very large searches. Most requests are cached, but still keep an eye on your system and maybe not go for
tag=* right away... don't say I didn't warn you! (Good thing
tag=* isn't supported at the moment)
To help you prioritize your optimization efforts, the Browse page will parse all Tags, Event Types, and Data Model Objects to return a list sorted by normalizedSearch length with conventient links drilling down into the Explorer. The D3 tree will by default get skipped for normalizedSearch lengths over 10kB to spare the browser, your mileage may vary.
Installation note: The app will expose the calculated fields REST endpoint through the splunkweb port in addition to the other endpoints such as field aliases that are exposed by default.
A note on Splunk Enterprise 6.6: While the Knowledge Object Explorer does work with 6.6, it does not mirror the litsearch optimization attempts built Splunk since 6.6.
Known Issues (v1.2):
eventtype=foo*are not supported
- Supports very large lists of same-name KOs again
- Checked for 7.0 compatibility
- New Browser page parses all Tags, Event Types, and Data Model Objects in a name space; links to Explore page for quick investigation
- New "Where did this setting come from?" tags on the Explore page
- Support for macros, variable tree depth, and skipping the D3 tree for very large normalizedSearches
Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.