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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...