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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...