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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...