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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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