Hi @vnravikumar,
There were some problems in the code, I tried to fix it.
@pramit46 can you try with following modified code:
require([
"splunkjs/mvc",
"splunkjs/mvc/searchmanager",
"splunkjs/mvc/simplexml/ready!",
], function (mvc, SearchManager) {
var query = "|makeresults | eval datetime=_time|table datetime | outputlookup ravi.csv append=t";
var mysearch = new SearchManager({
search: query,
autostart: false
});
$(window).unload(function () {
mysearch.startSearch();
});
});
Also to inform you that this search will also run when the page is reloaded.
... View more