18
18
</search >
19
19
<search id =" baseEventsSearch" >
20
20
<query >
21
- index=* sc4s_container=$sc4s_instance$
21
+ | tstats count where index=* sc4s_container=$sc4s_instance$ by index _time
22
22
</query >
23
23
<earliest >$time_range.earliest$</earliest >
24
24
<latest >$time_range.latest$</latest >
43
43
<input type =" time" token =" time_range" >
44
44
<label >Timer</label >
45
45
<default >
46
- <earliest >rt -15m</earliest >
47
- <latest >rt </latest >
46
+ <earliest >-15m</earliest >
47
+ <latest >now </latest >
48
48
</default >
49
49
</input >
50
50
<html >
220
220
<option name =" numberPrecision" >0</option >
221
221
<option name =" rangeColors" >["0x53a051", "0x0877a6", "0xf8be34", "0xf1813f", "0xdc4e41"]</option >
222
222
<option name =" rangeValues" >[0,30,70,100]</option >
223
+ <option name =" refresh.display" >progressbar</option >
223
224
<option name =" showSparkline" >1</option >
224
225
<option name =" showTrendIndicator" >1</option >
225
226
<option name =" trellis.enabled" >0</option >
310
311
<single >
311
312
<title >Total volume of actual syslog traffic delivered by this SC4S instance to Splunk</title >
312
313
<search base =" baseEventsSearch" >
313
- <query >| stats count</query >
314
+ <query >| stats sum( count) </query >
314
315
</search >
315
316
<option name =" colorBy" >value</option >
316
317
<option name =" colorMode" >none</option >
317
318
<option name =" drilldown" >none</option >
318
319
<option name =" numberPrecision" >0</option >
319
320
<option name =" rangeColors" >["0x53a051", "0x0877a6", "0xf8be34", "0xf1813f", "0xdc4e41"]</option >
320
321
<option name =" rangeValues" >[0,30,70,100]</option >
322
+ <option name =" refresh.display" >progressbar</option >
321
323
<option name =" showSparkline" >1</option >
322
324
<option name =" showTrendIndicator" >1</option >
323
325
<option name =" trellis.enabled" >0</option >
336
338
<title >Distributions of events by index</title >
337
339
<chart >
338
340
<search base =" baseEventsSearch" >
339
- <query >| stats count by index</query >
341
+ <query >| stats sum(count) as count by index</query >
340
342
</search >
341
343
<option name =" charting.axisLabelsX.majorLabelStyle.overflowMode" >ellipsisNone</option >
342
344
<option name =" charting.axisLabelsX.majorLabelStyle.rotation" >0</option >
366
368
<option name =" charting.legend.mode" >standard</option >
367
369
<option name =" charting.legend.placement" >right</option >
368
370
<option name =" charting.lineWidth" >2</option >
371
+ <option name =" refresh.display" >progressbar</option >
369
372
<option name =" trellis.enabled" >0</option >
370
373
<option name =" trellis.scales.shared" >1</option >
371
374
<option name =" trellis.size" >medium</option >
375
378
<title >Trends of events by index</title >
376
379
<table >
377
380
<search base =" baseEventsSearch" >
378
- <query >| chart sparkline(count) AS "Indexes Trend" count AS Total BY index</query >
381
+ <query >| stats sparkline(sum( count)) as "Indexes Trend" sum( count) as Total by index</query >
379
382
</search >
380
383
<option name =" count" >20</option >
381
384
<option name =" dataOverlayMode" >none</option >
393
396
<chart >
394
397
<search >
395
398
<query >
396
- index=* sc4s_container=$sc4s_instance$ | eval tags=split(sc4s_tags,"|") | mvexpand tags | search tags=".app.*" | timechart count by tags
399
+ | tstats count where index=* sc4s_container=$sc4s_instance$ by sc4s_tags _time | eval tags=split(sc4s_tags,"|") | mvexpand tags | search tags=".app.*" | timechart sum( count) by tags
397
400
</query >
398
401
<earliest >$time_range.earliest$</earliest >
399
402
<latest >$time_range.latest$</latest >
439
442
<table >
440
443
<search >
441
444
<query >
442
- index=* sc4s_container=$sc4s_instance$ | eval tags=split(sc4s_tags,"|") | mvexpand tags | chart count by tags
445
+ | tstats count where index=* sc4s_container=$sc4s_instance$ by sc4s_tags _time | eval tags=split(sc4s_tags,"|") | mvexpand tags | stats sum( count) as eventCount by tags | sort - eventCount
443
446
</query >
444
447
<earliest >$time_range.earliest$</earliest >
445
448
<latest >$time_range.latest$</latest >
449
452
</table >
450
453
</panel >
451
454
</row >
452
- </form >
455
+ </form >
0 commit comments