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!!!"
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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