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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...