Splunk Search

How do you upload a CSV using button click?

harishalipaka
Motivator

Hi All,

I want to upload a CSV file into a particular lookup folder related to that app only using javascript or XML code anything.

What i want is for when I click on button , it will browse to my local storage, and than i would have to upload one csv file that is directly saved to that lookup folder related to that app like ..................../en-US/manager/appname/data/lookup-table-files

NOTE:-
1. If that same name lookup is already available there ,it should delete and replace with my new file, otherwise we would get a name exits error
2. I am using server that lookups are stored in server like winscp/s3 browser, so I am unable to redirect it to that path.
3. I want to do this whole process using with code only without touching or running any code or command.
4. If possible, I'd also like it to do a debug refresh and _bump also via in this code .

I tried which one suggested by @niketnilay also
https://answers.splunk.com/answers/620547/is-it-possible-to-provide-upload-option-in-dashboa.html

Simply:- Dashboards-->click on upload button -->import file from pc -->IF exits that file delete than replace with latest fle --> uploaded succesful. -->If possible backend run debug refresh and _bump also...

thats it 🙂 Happy Splunking ..

Thanks in advance .....:)

Thanks
Harish
0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

hi @harishalipaka,

Did the answer below solve your problem? If so, please resolve this post by approving it!

0 Karma

woodcock
Esteemed Legend

If the Lookup File Editor app will not do it, it provides enough code for you to cannibalize to build your own thing:
https://splunkbase.splunk.com/app/1724/

niketn
Legend

@harishalipaka are you in need of Lookup Editor App?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...