Archive
Highlighted

App.conf version is empty on .spl file

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
Highlighted

Re: App.conf version is empty on .spl file

SplunkTrust
SplunkTrust

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

Highlighted

Re: App.conf version is empty on .spl file

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
Highlighted

Re: App.conf version is empty on .spl file

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.

0 Karma
Highlighted

Re: App.conf version is empty on .spl file

Explorer

I have deleted it but nothing is changed.

0 Karma
Highlighted

Re: App.conf version is empty on .spl file

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.