Dashboards & Visualizations

How to provide the upload option in a view to upload procedure documents in the Splunk app static folder?

rsathish47
Contributor

Hi All,

I have requirement where I need to provide the upload option in a view to upload the procedure documents in the Splunk app static folder. Can you please let me know how to achieve this? If you have an example, it would be great.

Thanks
sathish

0 Karma

lycollicott
Motivator

@rsathish47 did you come up with a solution for this?

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

So, you can achieve this with an HTML Dashboard, and a custom endpoint. BE WARNED! This may open your system up to malicious users.

See the answer here for the custom endpoint: https://answers.splunk.com/answers/352862/how-to-call-a-python-script-from-an-html-view.html#answer-...

Basically, your endpoint has three functions, "upload" and "download" and "list". This endpoint will interact with the local filesystem to put, list, and retrieve documents. BE ALSO WARNED: This probably WILL NOT work with a CLUSTER!

Once you have some endpoints to use, create an HTML dashboard to do the JS calls using forms, and other standard HTML/CSS/JS things to interact with that endpoint.

0 Karma

somesoni2
Revered Legend

To add static content to a Splunk app is more like an admin role activity (available from Manage Apps option in App menu/dropdown). Will only the Splunk admins be using this dashboard?

0 Karma

marina_rovira
Contributor

I think i'm not understanding the question. There is already an option to upload documents in splunk, but maybe that view is not as you want it to be? Can you explain it me more please?

Thanks!

0 Karma

rsathish47
Contributor

Hi Marina,
we have developing the dashboard in that depends upon value in the cell have to link the document which are resides in the static folder. As of now we have copied sample documents in the static folder, But we need to have option to upload the document to static folder.

let me if you need any further details.

0 Karma

gaurav_maniar
Builder

Hi @rsathish47 ,

Did you find any solution for file upload functionality?

0 Karma
Get Updates on the Splunk Community!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

Industry Solutions for Supply Chain and OT, Amazon Use Cases, Plus More New Articles ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...