Hello All,
I have some dashboards which are using reports for calculations, it has some lookup files, the problem is when the csv file limit reaches the set value, it stopped showing the Graphs on...
See more...
Hello All,
I have some dashboards which are using reports for calculations, it has some lookup files, the problem is when the csv file limit reaches the set value, it stopped showing the Graphs on dashboard and I have create new lookup file every time and update the dashboards, but I dont wanted to do it, is there anyway this can be avoided, I wanted outlookup file just to keep last 28 days of data and delete the rest of the data. I am trying below splunk script but not sure if I am doing it correctly. I have also tried the max option and its just restrict the query to dump the records into csv file above the set value
index="idx_rwmsna" sourcetype=st_rwmsna_printactivity source="E:\\Busapps\\rwms\\mna1\\geodev12\\Edition\\logs\\DEFAULT_activity_1.log" | transaction host, JobID, Report, Site startswith="Print request execution start." | eval duration2=strftime(duration, "%Mm %Ss %3Nms") | fields * | rex field=_raw "The request was (?<PrintState>\w*) printed." | rex field=_raw "The print request ended with an (?<PrintState>\w*)" | rex field=_raw ".*Dest : (?<Dest>\w+).*" | search PrintState=successfully Dest=Printer | table _time, host, Client, Site, JobID, Report, duration, duration2 | stats count as valid_events count(eval(duration<180)) as good_events avg(duration) as averageDuration | eval sli=round((good_events/valid_events) * 100, 2) | eval slo=99, timestamp=now() | eval burnrate=(100-sli)/(100-slo), date=strftime(timestamp,"%Y-%m-%d"), desc="WMS Global print perf" | eval time=now() | sort 0 - time | fields date, desc, sli, slo, burnrate, timestamp, averageDuration | outputlookup lkp_wms_print_slislo1.csv append=true override_if_empty=true | where time > relative_time(now(), "-2d@d") OR isnull(time)