All Apps and Add-ons

Splunk App setup.xml

ashajambagi
Communicator

Hi All,
I have built an app and want to configure the setup page for the same.
The setup page should take a .csv file as input and store it in apps/. The csv file is used by a python script to fetch data.
Any suggestions would be helpful.

Thanks

0 Karma

jkat54
SplunkTrust
SplunkTrust

You will need a custom js uploader to handle a csv upload via the web UI. To my knowledge this can’t be done in setup.xml and requires a custom “view” instead.

Best you can do with setup xml is have them copy and paste in the csv to a very large field.

0 Karma

ashajambagi
Communicator

@jkat54 Can you please explain more

0 Karma

jkat54
SplunkTrust
SplunkTrust

I wish I could but I’ve never done it before.

You typically need something server side to handle the upload.

You can do that with a custom rest endpoint that accepts files via POST method.

You can implement the post with ajax, js, etc. on an HTML dashboard or possibly even a xml dashboard with js/Ajax/html embedded.

I do not believe you can do this with just setup.xml though. I think you will need some a custom test handler coded in python.

Are you up for the task of developing this? To be honest, I’ve tried a couple times and hit dead ends. I would love to be able to do this though.

0 Karma

ashajambagi
Communicator

@jkat54 Thank you! I would give it a try.

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...