Why re-invent the wheel? Unless you are opposed to wasting man-hours, use a Splunk® search or query that is either exactly what you want or close enough you can modify to do just what you need.
Please consider adding your known working queries to GoSplunk.com.
This app is currently in beta. Feedback is appreciated. The end-goal is to have this submitted to Splunkbase once the app is cleaned up and has a solid core functionality. Please submit a Github issue for any bugs or feature requests you want to see.
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 50GB 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.