@bengevaaa I have another way to check the search log using javascript, it may be useful to you. I'm sharing my sample code here. <dashboard version="1.1" script="js/a.js">
<label>Restricted Searches and job inspector</label>
<row>
<panel>
<table>
<search id="searchTkn">
<query>index="_internal" | stats count by sourcetype</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
</search>
<option name="drilldown">none</option>
</table>
</panel>
</row>
</dashboard> require([
'underscore',
'jquery',
'splunkjs/mvc',
'splunkjs/mvc/tableview',
'splunkjs/mvc/simplexml/ready!'
], function(_, $, mvc) {
console.log("searchTkn");
var searchTkn = mvc.Components.getInstance("searchTkn");
var service = mvc.createService({ owner: "nobody" });
searchTkn.on("search:done", function(properties) {
console.log(properties);
console.log(properties.links);
console.log(properties.links["search.log"]);
service.request(properties.links["search.log"], "GET", null, null, null, { "Content-Type": "application/json" }, null).done(function(response) {
console.log(response);
// Apply your grep OR filter logic as per your requirement
});
})
}); Use the above code to get the search log and integrate Modal View if you get your required error/ information in log. I hope this will help you. Thanks KV If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.
... View more