All Apps and Add-ons

App.conf version is empty on .spl file

dnamal
Explorer

I would like to put my application into Splunkbase. However when I package my app and send it to splunk validator api, I see the following error.

Splunk App packages must contain a default/app.conf file with an [id]or [launcher] stanza using theversionproperty formatted asMajor.Minor.Revision

I see that although I have a version in my app.conf, after downloading it is deleted from there. I added an [id] stanza to make things work but things go tangled.

0 Karma

dnamal
Explorer

Actually deleting all of the local directory worked.

However I have views and data_models on local directory that I need to use it in my app. I moved the views under the default folder and it worked but the data models are disappeared.

xpac
SplunkTrust
SplunkTrust

Can you please share your actual complete app.conf? Did you place it in local or default?

dnamal
Explorer

I placed it on default/app.conf. I added the id stanza because I was not able to pass those validation requirements.

[default]
[id]
version = 1.0.5
name = thundra

[install]
is_configured = 0

[launcher]
version = 1.0.5
description = Full Observability for AWS Lambda from Thundra
author = Thundra

[package]
id = thundra

[ui]
is_visible = 1
label = Thundra App

When I download it after packaging the .spl file shows the version field "version = " that.

Also this is my local/app.conf
[ui]

[launcher]
version =

0 Karma

jconger
Splunk Employee
Splunk Employee

You will need to delete anything in local. You local version of app.conf takes precedence over your default version of app.conf.

dnamal
Explorer

I have deleted it but nothing is changed.

0 Karma
Get Updates on the Splunk Community!

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...