Copyright 2016 Splunk Inc. Faster Splunk App Cer=fica=on with Splunk AppInspect Andy Nortrup Product Manager, Splunk Grigori Melnik Director, Product Management, Splunk
Disclaimer During the course of this presenta=on, we may make forward looking statements regarding future events or the expected performance of the company. We cau=on you that such statements reflect our current expecta=ons and es=mates based on factors currently known to us and that actual events or results could differ materially. For important factors that may cause actual results to differ from those contained in our forward-looking statements, please review our filings with the SEC. The forward-looking statements made in the this presenta=on are being made as of the =me and date of its live presenta=on. If reviewed arer its live presenta=on, this presenta=on may not contain current or accurate informa=on. We do not assume any obliga=on to update any forward looking statements we may make. In addi=on, any informa=on about our roadmap outlines our general product direc=on and is subject to change at any =me without no=ce. It is for informa=onal purposes only and shall not, be incorporated into any contract or other commitment. Splunk undertakes no obliga=on either to develop the features or func=onality described or to include any such feature or func=onality in a future release. 2
Agenda What is Splunk AppInspect Standalone package Web Service Demos Custom REST endpoint Modular Input Add-on building Ques=ons 3
Splunk App Cer=fica=on Program Benefits For app devs Obtain sales leads Earn premium lis=ng on Splunkbase Find bugs in your code Get addi=onal insights into your code & your technical debt. Ensure conformance to coding guidelines, proven, and recommended prac=ces. Check for cloud readiness For app users Gain confidence in app quality Be]er level of app support 4
Splunk App Cer=fica=on Process Splunk AppInspect 5
What is Splunk AppInspect Standalone tool pip install splunk_appinspect Sta=c analysis checks Web service REST endpoints Sta=c and dynamic analysis Full Documenta=on: <Documenta=on Reference Addr / Link> 6
Well-formedness Checks Similar to Lint, FindBugs, PMD, FxCop Sample checks: Mod inputs: 141 checks covering: Modular Inputs Custom Alert Ac=ons Custom Search Commands Custom Workflow Ac=ons Custom REST Endpoints Custom Visualiza=ons btool (web service only) Custom alert ac=ons: 7
Splunk AppInspect Standalone Demo 8
Well-formedness Checks Custom REST endpoint default/restmap.conf bin/do_stuff.py [admin_external:do_stuff] handlertype = python handlerfile = do_stuff.py handlerpersistentmode=false handleractions=create import splunk.admin as admin import splunk.entity as en class ConfigApp(admin.MConfigHandler):... 9
Splunk AppInspect Web Service Demo 10
REST Endpoints Validate Submit and app for valida=on h]p -f POST appinsepct.splunk.com/v1/app/validate app.tgz Status Get the status of the valida=on h]p GET appinsepct.splunk.com/v1/app/status/{report-id} Report Get the results of the valida=on h]p GET appinsepct.splunk.com/v1/app/report/{report-id} Groups Get a list of check groups h]p GET appinsepct.splunk.com/v1/group Checks Get a list of checks h]p GET appinsepct.splunk.com/v1/check 11
Well-formedness Checks Example Modular Input README/inputs.conf.spec script.py --scheme default/inputs.conf 12
Integra=on with Add-on Builder <placeholder> if this is done in =me for.conf Also, refer a]endees to a related talk on Add-on Builder 13
Accelerate Your App Cer=fica=on Follow proven and recommended prac=ces. splk.it/appcert splk.it/cloud-apps Pre-cer=fy your apps with AppInspect Make sure your Splunkbase lis=ng has a valid email Provide release notes and installa=on instruc=ons. Test them! Provide test data / eventgen Provide tes=ng API keys Provide func=onal test suite or test cases Respond to code and security review feedback promptly Perform regression tes=ng 14
Call to Ac=on! Download AppInspect (<link placeholder>) Pre-cer=fy your app be for publishing Apply for cer=fica=on Lead genera=on Be]er visibility on Splunkbase Approved for Splunk Cloud installa=on Provide feedback to us (AppCertAdmin@splunk.com) Success stories Pain points Bugs Sugges=ons for addi=onal checks Sugges=ons for fine tuning of pa]ern analysis to reduce false posi=ves Spread the word #AppInspect
Ques=ons? 16
THANK YOU