Splunk Dev

Local App Validation for Splunk Cloud Apps

ddrillic
Ultra Champion
We typically develop our app locally, then upload it to Splunk Cloud and run AppInspect validations there. Is there a local validation tool or environment available that would allow us to validate the app before uploading it to Splunk Cloud?
Labels (1)
0 Karma

kml_uvce
Motivator

Yes, there are two ways to do this before you upload to Splunk Cloud.

1. AppInspect CLI (runs fully on your machine)

 
pip install splunk-appinspect
splunk-appinspect inspect myapp.tgz --mode precert --included-tags cloud

For private apps on Splunk Cloud, use the tag that matches your stack's architecture instead of cloud: --included-tags private_victoria or --included-tags private_classic. These architecture-based tags are groups of checks taken from the original private-app tag, and they apply the self-service install checks for your specific Cloud stack. You can add --output-file report.json or --generate-feedback to get a report you can act on.

2. AppInspect API (the same service Cloud uses)

Send the package to https://appinspect.splunk.com/v1/app/validate with a Bearer token from your splunk.com account and the same tags. This is closer to what Cloud will report. The API has more checks than the CLI, including some runtime checks that install the app into a running Splunk instance. It may also use a newer version of the AppInspect library.

What I'd recommend: run the CLI on every build, since it's fast and works offline. Then run the API with your stack's tag as the last step before you upload. Splunk's docs say the CLI might not include the latest checks and does not use dynamic analysis, so a clean CLI run doesn't guarantee a clean result in Cloud. If you use GitHub Actions, Splunk publishes actions for both the CLI and the API, so you can run this on each PR. If you install private apps through ACS, upload the same package that passed the API run.

Docs: https://dev.splunk.com/enterprise/docs/developapps/testvalidate/appinspect

kamal singh bisht
0 Karma

PickleRick
SplunkTrust
SplunkTrust

You can use Add-On builder. After installing AOB, you can choose your app from "Other apps and add-ons" and have it checked. If you only use "Best Practice", "Data Model Mapping" and "Field Extraction" checks, they are done locally. If you choose "App Precertification", the app will get uploaded on your behalf to the Cloud app checker (you have to provide your user/pass in settings).

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Kubernetes Alerts That Work Out of the Box with AutoDetect detectors in Splunk ...

A deployment rolls out slowly, one pod sits not ready for a few minutes, and whoever is on call gets an alert ...

Observability at Your Fingertips Directly From Splunk Platform—for Free

At .conf, we announced our roadmap to bring observability foundations to Splunk Platform. Bringing metrics and ...