Splunk Search

How do you upload a CSV using button click?

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 .....:)

0 Karma

Splunk Employee
Splunk Employee

hi @harishalipaka,

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

0 Karma

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/

SplunkTrust
SplunkTrust

@harishalipaka are you in need of Lookup Editor App?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"