If you're looking for a javascript call... here's an example using axios (an npm package i use in my react apps - fetch will also work)
const base_url = ''https://yoursplunkserver.com/servicesNS/admin/search/search/jobs/export";
const auth = {username: 'username', password: 'password'};
const search = 'savedsearch yourSavedSearchName';
const params={'output_mode': 'json_cols', search: search}; //no es6 used for clarity
axios.get(base_url, {auth: auth, params: params})
.then((response) => {
//do something with your data
})
.catch((err) => {
//sth went wrong
}
Hope this helps someone
... View more
I assume you're looking for more like a fetch call??
Using the npm library axios I would do
axios.get(url, {
auth: {username: 'username', password: 'password'},
params: {output_mode: 'json', 'search': 'savedsearch usernameSearch'},
})
.then((response)=>{
console.log(response);
})
.catch((err)=>{
console.log('err', err);
});
... View more