-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathshc_knowledge_bundle_analysis.xml
732 lines (726 loc) · 38.1 KB
/
shc_knowledge_bundle_analysis.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
<form version="1.1" hideEdit="false" script="common_control.js, table_cell_highlighting.js, table_cell_highlighting1.js" stylesheet="shared.css, health-check.css, table_cell_highlighting.css" theme="light">
<label>SHC: Search Knowledge Bundle</label>
<search>
<done>
<set token="optimizedSearch">$job.optimizedSearch$</set>
</done>
<query>$dma_search|s$</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<search id="members_heartbeat_timeout_base" base="membersSnapshotSearch">
<query>
fields label, status, last_heartbeat, last_heartbeat_captain
| join label type=outer [
| rest splunk_server_group="$group$" splunk_server_group=dmc_group_search_head /services/configs/conf-server/shclustering
| fields splunk_server, heartbeat_timeout
| rename splunk_server as label
]
| where status != "Up" OR (last_heartbeat_captain - last_heartbeat) > heartbeat_timeout
</query>
<preview>
<condition match="$job.resultCount$ > 0">
<set token="member_heartbeat_text_unhealthy">There are members in this cluster that do not have a healthy heartbeat status.</set>
</condition>
<condition match="$job.resultCount$ = 0">
<set token="member_heartbeat_text_healthy">All members in this cluster have a healthy heartbeat status.</set>
</condition>
</preview>
</search>
<search id="member_peer_consistency_base">
<query>
| rest splunk_server_group="$group$" splunk_server_group=dmc_group_search_head /services/search/distributed/peers
| fields splunk_server, peerName
| stats values(peerName) as peers by splunk_server
| nomv peers
| stats values(splunk_server) AS search_heads by peers
| makemv peers
| fields search_heads peers
| rename search_heads as "Search Head Cluster Member", peers as "Search Peer List"
</query>
<preview>
<condition match="$job.resultCount$ > 1">
<set token="member_peer_inconsistency_text">The list of distributed search peers is inconsistent among cluster members. This could result in inconsistent search results within the search head cluster.</set>
</condition>
</preview>
</search>
<search base="membersSnapshotSearch">
<query>
where total_no_shared_common_baseline+total_unable_to_connect > 0
</query>
<preview>
<condition match="$job.resultCount$ > 0">
<set token="common_baseline_text_unhealthy">There are members in this cluster that do not share a common baseline. Action may be required.</set>
<unset token="common_baseline_text_healthy"></unset>
</condition>
<condition match="$job.resultCount$ = 0">
<set token="common_baseline_text_healthy">All members in this cluster share a common baseline.</set>
<unset token="common_baseline_text_unhealthy"></unset>
</condition>
</preview>
</search>
<search id="snapshot_search_concurrency_base">
<query>
| rest splunk_server_group="$group$" splunk_server_group=dmc_group_search_head /services/server/status/resource-usage/splunk-processes
| search search_props.role="head"
| dedup search_props.sid
</query>
</search>
<search id="search_concurrency_vs_limits_base" base="snapshot_search_concurrency_base">
<query>
stats count(eval(('search_props.type'=="scheduled" OR 'search_props.type'=="summary indexing" OR 'search_props.type'=="report acceleration" OR 'search_props.type'=="datamodel acceleration" OR 'search_props.type'=="ad-hoc") AND ('search_props.mode'=="historical" OR 'search_props.mode'=="historical batch"))) as count_total_hist,
count(eval(('search_props.type'=="scheduled" OR 'search_props.type'=="summary indexing" OR 'search_props.type'=="report acceleration" OR 'search_props.type'=="datamodel acceleration" OR 'search_props.type'=="ad-hoc") AND ('search_props.mode'=="RT" OR 'search_props.mode'=="RT indexed"))) as count_total_rt,
count(eval(('search_props.type'=="scheduled" OR 'search_props.type'=="summary indexing" OR 'search_props.type'=="report acceleration" OR 'search_props.type'=="datamodel acceleration") AND ('search_props.mode'=="historical" OR 'search_props.mode'=="historical batch"))) as count_hist_scheduled_search,
count(eval(('search_props.type'=="scheduled" OR 'search_props.type'=="summary indexing" OR 'search_props.type'=="report acceleration" OR 'search_props.type'=="datamodel acceleration") AND ('search_props.mode'=="RT" OR 'search_props.mode'=="RT indexed"))) as count_rt_scheduled_search,
count(eval(('search_props.type'=="report acceleration" OR 'search_props.type'=="datamodel acceleration"))) as count_auto_summary_search
| eval count_total_adhoc_scheduled_search = count_total_hist + count_total_rt
| eval count_total_scheduled_search = count_hist_scheduled_search + count_rt_scheduled_search
| eval dummy_key = "dummy_key"
| fields count_total_hist, count_hist_scheduled_search,
count_total_rt, count_rt_scheduled_search,
count_auto_summary_search,
count_total_adhoc_scheduled_search, count_total_scheduled_search,
dummy_key
| join dummy_key type=outer [
| rest splunk_server_group="$group$" splunk_server_group=dmc_group_search_head "/services/server/status/limits/search-concurrency?cluster_wide_quota=1"
| stats max(max_hist_searches) as max_hist_searches, max(max_hist_scheduled_searches) as max_hist_scheduled_searches, max(max_rt_searches), as max_rt_searches, max(max_rt_scheduled_searches) as max_rt_scheduled_searches, max(max_auto_summary_searches) as max_auto_summary_searches
| eval dummy_key = "dummy_key"
| fields max_hist_searches, max_hist_scheduled_searches,
max_rt_searches, max_rt_scheduled_searches,
max_auto_summary_searches,
dummy_key
]
</query>
<preview>
<eval token="count_total_adhoc_scheduled_search">if(isnotnull('result.count_total_adhoc_scheduled_search'), 'result.count_total_adhoc_scheduled_search', 0)</eval>
<eval token="count_total_scheduled_search">if(isnotnull('result.count_total_scheduled_search'), 'result.count_total_scheduled_search', 0)</eval>
</preview>
</search>
<search id="shcSearchConBase">
<query>
`dmc_set_index_introspection` search_group=dmc_group_search_head search_group="$group$" sourcetype=splunk_resource_usage ((component=PerProcess data.search_props.sid::*) OR component=Hostwide)
| `dmc_rename_introspection_fields`
| `dmc_set_bin`
| stats dc(sid) AS distinct_search_count by provenance, mode, app, type, user, host, _time
</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
</search>
<search id="captainElectionBaseSearch">
<query>
`dmc_set_index_internal` search_group="$group$" sourcetype=splunkd component=Metrics group=captainstability upgrades_to_captain=1
| stats count by _time, upgrades_to_captain, host
</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
</search>
<search id="captainSnapshotSearch">
<query>
| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/shcluster/captain/info
| dedup peer_scheme_host_port
| fields label
</query>
<finalized>
<set token="captain_name">$result.label$</set>
</finalized>
</search>
<search id="membersSnapshotSearch">
<query>
| rest splunk_server=local /services/search/distributed/peers
| where search_groups="$group$" AND server_roles="search_head"
| eval label = host
| join guid type=outer [
| rest splunk_server_group="$group$" splunk_server_group=dmc_group_search_head /services/shcluster/member/members count=0
| dedup label
| eval guid = title
]
| join label type=outer [
| rest splunk_server=$captain_name$ /services/shcluster/captain/members count=0
| where splunk_server == label
| fields label, last_heartbeat
| rename last_heartbeat as last_heartbeat_captain
]
| eventstats values(last_heartbeat_captain) as last_heartbeat_captain
| join label type=outer [
| rest splunk_server_group="$group$" splunk_server_group=dmc_group_search_head /services/shcluster/captain/info
| where splunk_server == label
| eval age = now() - elected_captain
| eval captain_age = case(age < 60, "< 1m", age >= 60 AND age < 3600, round(age / 60, 0)."m", age >= 3600 AND age < 86400, round(age / 3600, 0)."h", age >= 86400, round(age / 86400, 0)."d")
| `dmc_time_format(elected_captain)`
| eval role = "Captain (" . captain_age . ")"
| fields label captain_age elected_captain role
]
| join label type=outer [
| rest /services/replication/configuration/health check_share_baseline=1 splunk_server_group="$group$" splunk_server_group=dmc_group_search_head
| stats values(server_name) as baselines, count(server_name) as num_baselines by splunk_server, check_share_baseline
| eval shared_common_baseline = if(check_share_baseline == "Yes", baselines, "")
| eval no_shared_common_baseline = if(check_share_baseline == "No", baselines, "")
| eval unable_to_connect = if(check_share_baseline == "Connection error", baselines, "")
| eval num_shared_common_baseline = if(check_share_baseline == "Yes", num_baselines, 0)
| eval num_no_shared_common_baseline = if(check_share_baseline == "No", num_baselines, 0)
| eval num_unable_to_connect = if(check_share_baseline == "Connection error", num_baselines, 0)
| stats sum(num_shared_common_baseline) as total_shared_common_baseline, sum(num_no_shared_common_baseline) as total_no_shared_common_baseline, sum(num_unable_to_connect) as total_unable_to_connect, values(shared_common_baseline) as shared_common_baseline, values(no_shared_common_baseline) as no_shared_common_baseline, values(unable_to_connect) as unable_to_connect by splunk_server
| eval ratio = total_shared_common_baseline . "/" . (total_shared_common_baseline+total_no_shared_common_baseline+total_unable_to_connect)
| rename splunk_server as label
]
| join label type=outer [
| rest /services/replication/configuration/health unpublished=1 splunk_server_group="$group$" splunk_server_group=dmc_group_search_head
| rename "Number of unpublished changes" as unpublished_changes
| eval unpublished_changes=if(unpublished_changes=="0 (this instance is the captain)", 0, unpublished_changes)
| rename splunk_server as label
]
| eval role = if(isnotnull(role), role, "Member")
| sort role
</query>
</search>
<fieldset submitButton="false">
<input type="dropdown" searchWhenChanged="true" token="group">
<label>Search Head Cluster:</label>
<showClearButton>false</showClearButton>
<populatingSearch fieldForLabel="label" fieldForValue="search_group">| `dmc_get_search_head_cluster_groups`</populatingSearch>
<selectFirstChoice>true</selectFirstChoice>
</input>
<input type="time" token="time" searchWhenChanged="true">
<label></label>
<default>
<earliest>-60m@m</earliest>
<latest>now</latest>
</default>
</input>
</fieldset>
<row>
<panel>
<title>bundle WARN & ERROR</title>
<table>
<search>
<query>index=_internal search_group=$group$ search_group=dmc_group_search_head source=*splunkd.log* component=*distributed* log_level!=INFO | rex "\d{2}\-\d{2}\-\d{4}\s+\d{2}\:\d{2}\:\d{2}\.\d{3}\s+\S+\s+\w+\s+\w+(?<msg>.+)" | stats count by host component log_level msg | sort -count</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">5</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">row</option>
<option name="percentagesRow">false</option>
<option name="rowNumbers">true</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
<drilldown>
<set token="wrow">$click.name$</set>
</drilldown>
</table>
<html>
<p>Click any row above to see timechart</p>
</html>
</panel>
</row>
<row>
<panel depends="$wrow$">
<title>distributed search warnings and errors</title>
<input type="dropdown" token="span" searchWhenChanged="true">
<label>span</label>
<choice value="minspan=10s">auto</choice>
<choice value="span=1m">1m</choice>
<choice value="span=5m">5m</choice>
<choice value="span=15m">15m</choice>
<choice value="span=1h">1h</choice>
<default>span=5m</default>
<initialValue>span=5m</initialValue>
<fieldForLabel>span</fieldForLabel>
<fieldForValue>span</fieldForValue>
</input>
<chart>
<search>
<query>index=_internal search_group=$group$ search_group=dmc_group_search_head source=*splunkd.log* component=*distributed* log_level!=INFO | timechart $span$ count by host useother=f limit=0</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.axisY2.enabled">0</option>
<option name="charting.axisY2.scale">inherit</option>
<option name="charting.chart">column</option>
<option name="charting.chart.bubbleMaximumSize">50</option>
<option name="charting.chart.bubbleMinimumSize">10</option>
<option name="charting.chart.bubbleSizeBy">area</option>
<option name="charting.chart.nullValueMode">connect</option>
<option name="charting.chart.showDataLabels">none</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">stacked</option>
<option name="charting.chart.style">shiny</option>
<option name="charting.drilldown">all</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="charting.legend.placement">right</option>
<option name="height">447</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
<drilldown>
<set token="host1">$click.name2$</set>
</drilldown>
</chart>
<html>
<p>Click any host to see timechart</p>
<a data-unset-token="wrow">Close this panel</a>
</html>
</panel>
</row>
<row>
<panel depends="$host1$">
<title>distributed search warnings and errors for $host1$</title>
<input type="dropdown" token="span" searchWhenChanged="true">
<label>span</label>
<choice value="minspan=10s">auto</choice>
<choice value="span=1m">1m</choice>
<choice value="span=5m">5m</choice>
<choice value="span=15m">15m</choice>
<choice value="span=1h">1h</choice>
<default>span=5m</default>
<initialValue>span=5m</initialValue>
<fieldForLabel>span</fieldForLabel>
<fieldForValue>span</fieldForValue>
</input>
<chart>
<search>
<query>index=_internal search_group=$group$ search_group=dmc_group_search_head host=$host1$ source=*splunkd.log* component=*distributed* log_level!=INFO | rex "\d{2}\-\d{2}\-\d{4}\s+\d{2}\:\d{2}\:\d{2}\.\d{3}\s+\S+\s+\w+\s+\w+(?<msg>.+)" | eval host_msg=host.":::".msg | timechart $span$ count by host_msg useother=f limit=0</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.axisY2.enabled">0</option>
<option name="charting.axisY2.scale">inherit</option>
<option name="charting.chart">column</option>
<option name="charting.chart.bubbleMaximumSize">50</option>
<option name="charting.chart.bubbleMinimumSize">10</option>
<option name="charting.chart.bubbleSizeBy">area</option>
<option name="charting.chart.nullValueMode">connect</option>
<option name="charting.chart.showDataLabels">none</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">stacked</option>
<option name="charting.chart.style">shiny</option>
<option name="charting.drilldown">all</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="charting.legend.placement">right</option>
<option name="height">447</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
<drilldown>
<set token="host1">$click.value$</set>
</drilldown>
</chart>
<html>
<a data-unset-token="host1">Close this panel</a>
</html>
</panel>
</row>
<row>
<panel rejects="$historical$">
<title>SHC Member Status</title>
<table id="members_table">
<title>$totalCountOfMembers$ Members</title>
<search base="membersSnapshotSearch">
<done>
<set token="totalCountOfMembers">$job.resultCount$</set>
</done>
<error>
<set token="totalCountOfMembers">N/A</set>
</error>
<query>fields label role status
| rename label as Instance, role as Role, status as Status</query>
</search>
<!--<option name="refresh.auto.interval">60</option>-->
<option name="count">20</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">cell</option>
<option name="refresh.time.visible">0</option>
<option name="rowNumbers">false</option>
<option name="wrap">true</option>
<drilldown>
<condition field="Instance">
<set token="SHCMemberDrilldown">$click.value2$</set>
</condition>
<condition field="Configuration Baseline Consistency">
<set token="SHCMemberBaselineDrilldown">$row.Instance$</set>
</condition>
<condition field="*"></condition>
</drilldown>
</table>
</panel>
</row>
<row>
<panel>
<title>Distributed Peer Heartbeat - Peer Count per SH (SH heartbeats peers every 5m)</title>
<chart>
<search>
<query>index=_internal search_group=$group$ search_group=dmc_group_search_head source=*metrics.log* group=search_health_metrics name=distributed_peer_heartbeat | timechart span=5m max(Peer_Count) as peer_count by host limit=0</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">collapsed</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.axisX.abbreviation">none</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.abbreviation">none</option>
<option name="charting.axisY.scale">log</option>
<option name="charting.axisY2.abbreviation">none</option>
<option name="charting.axisY2.enabled">0</option>
<option name="charting.axisY2.scale">inherit</option>
<option name="charting.chart">column</option>
<option name="charting.chart.bubbleMaximumSize">50</option>
<option name="charting.chart.bubbleMinimumSize">10</option>
<option name="charting.chart.bubbleSizeBy">area</option>
<option name="charting.chart.nullValueMode">zero</option>
<option name="charting.chart.showDataLabels">minmax</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.chart.style">shiny</option>
<option name="charting.drilldown">none</option>
<option name="charting.layout.splitSeries">1</option>
<option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="charting.legend.mode">standard</option>
<option name="charting.legend.placement">right</option>
<option name="charting.lineWidth">2</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
</chart>
</panel>
</row>
<row>
<panel>
<title>Peer count per search head</title>
<table>
<search>
<query>| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/search/distributed/peers
| fields splunk_server, peerName
| stats list(peerName) as peers dc(peerName) as peerCount by splunk_server</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">5</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>knowledge bundles on SHC captain : $captain_name$</title>
<table>
<search>
<query>| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/search/distributed/bundle-replication-files | convert ctime(timestamp) as timestamp| eval sizeMB= round(size/1024/1024,2) | table splunk_server filename location size sizeMB timestamp title| rename splunk_server as "shc_captain" title as "bundle version" | join shc_captain [| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/configs/conf-distsearch | search maxBundleSize=* | table splunk_server maxBundleSize | rename splunk_server as shc_captain maxBundleSize as "maxBundleSize (distsearch.conf)"] | join shc_captain
[| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/shcluster/captain/info
| dedup peer_scheme_host_port
| fields label
| rename label as "shc_captain"] | sort -timestamp</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">5</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>SHC captain ($captain_name$) view of bundle versions on each peer</title>
<table>
<search>
<query>| rest splunk_server=* /services/search/distributed/peers
| rex field=bundle_isIndexing "\w\s-\s(?<truefalse>\w+)"
| stats values(bundle_versions) as "bundle version" dc(bundle_versions) as "bundle versions on indexer" by splunk_server host status version guid
| rename version as "indexer version" guid as "indexer guid" splunk_server as shc_captain host as indexer
| join shc_captain
[| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/shcluster/captain/info
| dedup peer_scheme_host_port
| fields label
| rename label as "shc_captain"]</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">5</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>peer side knowledge bundle receive msgs</title>
<input type="dropdown" token="SH_id" searchWhenChanged="true">
<label>SH id filter</label>
<fieldForLabel>SH_id</fieldForLabel>
<fieldForValue>SH_id</fieldForValue>
<search>
<query>index=_internal search_group="dmc_group_indexer" source=*splunkd_access.log* *bundle* method=POST /services/receivers/bundle* | rex "\/services\/receivers\/(?<type>\S+)\/(?<SH_id>\S+)\s+HTTP" | table _time host method type SH_id bytes spent clientip status | dedup SH_id | table SH_id</query>
<earliest>-60m@m</earliest>
<latest>now</latest>
</search>
</input>
<table>
<search>
<query>index=_internal search_group="dmc_group_indexer" source=*splunkd_access.log* *bundle* method=POST /services/receivers/bundle* | rex "\/services\/receivers\/(?<type>\S+)\/(?<SH_id>\S+)\s+HTTP" | search SH_id="$SH_id$" | table _time host method type SH_id bytes spent clientip status</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">5</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>timechart peer side knowledge bundle receive msgs</title>
<chart>
<search>
<query>index=_internal search_group="dmc_group_indexer" source=*splunkd_access.log* *bundle* method=POST /services/receivers/bundle* | rex "\/services\/receivers\/(?<type>\S+)\/(?<SH_id>\S+)\s+HTTP" | search SH_id="$SH_id$" | eval type_SH=SH_id."::".type | timechart dc(SH_id) by type_SH limit=0</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
<option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
<option name="charting.axisTitleX.visibility">visible</option>
<option name="charting.axisTitleY.visibility">visible</option>
<option name="charting.axisTitleY2.visibility">visible</option>
<option name="charting.axisX.abbreviation">none</option>
<option name="charting.axisX.scale">linear</option>
<option name="charting.axisY.abbreviation">none</option>
<option name="charting.axisY.scale">linear</option>
<option name="charting.axisY2.abbreviation">none</option>
<option name="charting.axisY2.enabled">0</option>
<option name="charting.axisY2.scale">inherit</option>
<option name="charting.chart">line</option>
<option name="charting.chart.bubbleMaximumSize">50</option>
<option name="charting.chart.bubbleMinimumSize">10</option>
<option name="charting.chart.bubbleSizeBy">area</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.showDataLabels">none</option>
<option name="charting.chart.sliceCollapsingThreshold">0.01</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.chart.style">shiny</option>
<option name="charting.drilldown">none</option>
<option name="charting.layout.splitSeries">0</option>
<option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
<option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option>
<option name="charting.legend.mode">standard</option>
<option name="charting.legend.placement">right</option>
<option name="charting.lineWidth">2</option>
<option name="refresh.display">progressbar</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
</chart>
</panel>
</row>
<row>
<panel>
<title>How much space do my search bundles take up on the indexer?</title>
<input type="text" token="bundle_count" searchWhenChanged="true">
<label>number of knowledge bundles residing on peer (typically 5-10 per SH/SHC id)</label>
<default>10</default>
<initialValue>10</initialValue>
</input>
<table>
<search>
<query>| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/search/distributed/bundle-replication-files | stats max(size) as max_full_bundle_size by splunk_server | eval bundles_on_peer=$bundle_count$ | eval agg_bundle_size_demand_on_peer=max_full_bundle_size*bundles_on_peer*2 | eval agg_bundle_size_demand_on_peerMB= round(agg_bundle_size_demand_on_peer/1024/1024,2) | table splunk_server max_full_bundle_size bundles_on_peer agg_bundle_size_demand_on_peerMB | rename splunk_server as shc_captain | join shc_captain
[| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/shcluster/captain/info
| dedup peer_scheme_host_port
| fields label
| rename label as "shc_captain"]</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">20</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>lookup files which are configured for automatic lookups (don't blacklist these from the knowledge bundle)</title>
<table>
<search>
<query>| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/configs/conf-transforms | search filename=*| table splunk_server eai:acl.app title filename id | rename eai:acl.app as app title as stanza splunk_server as shc_captain | join shc_captain
[| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/shcluster/captain/info
| dedup peer_scheme_host_port
| fields label
| rename label as "shc_captain"]</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">5</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="rowNumbers">true</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
<panel>
<title>Datamodel searches which contain lookups (don't blacklist these lookups from the knowledge bundle)</title>
<table>
<search>
<query>| rest splunk_server_group=dmc_searchheadclustergroup_shcluster1_new /services/datamodel/acceleration| fields title search | eval contains_lookup=if(like(search, "%lookup%"),1,0) | eval contains_lookup=case(contains_lookup=1,"yes",contains_lookup=0,"no")| table title search contains_lookup | search contains_lookup=yes</query>
<earliest>-4h@m</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">50</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="rowNumbers">true</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>macros which include lookups (need to use macro stanza name to search DM searches)</title>
<table>
<search>
<query>| rest splunk_server_group=dmc_searchheadclustergroup_shcluster1_new splunk_server_group=dmc_group_search_head /services/configs/conf-macros | search definition=*lookup* | table splunk_server eai:acl.app title definition | rename eai:acl.app as app title as stanza splunk_server as shc_captain
| join shc_captain
[| rest splunk_server_group=dmc_searchheadclustergroup_shcluster1_new splunk_server_group=dmc_group_search_head /services/shcluster/captain/info
| dedup peer_scheme_host_port
| fields label
| rename label as "shc_captain"]</query>
<earliest>-4h@m</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">50</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="rowNumbers">true</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>timeout settings - distsearch.conf</title>
<table>
<search>
<query>| rest splunk_server_group=$group$ splunk_server_group=dmc_group_search_head /services/configs/conf-distsearch | fields *Timeout* splunk_server title id | search title=distributedSearch OR title=replicationSettings | table splunk_server title *Timeout* | rename title as stanza | sort -splunk_server</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">1</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>Datamodel Acceleration Searches (does this endpoint only return DMAs in the search app? )</title>
<table>
<search>
<query>| rest splunk_server=$captain_name$ /services/datamodel/acceleration | fields title eai:acl.app search | rename eai:acl.app as app</query>
<earliest>-4h@m</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">50</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">none</option>
<option name="percentagesRow">false</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">true</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
</table>
</panel>
</row>
<row>
<panel>
<title>paste DMA search into dma_search box above to execute and produce the optimizedSearch to see if any lookups are present</title>
<input type="text" token="dma_search" searchWhenChanged="true">
<label>enter dma search</label>
</input>
<table>
<search>
<query>| makeresults | eval optimizedSearch=($optimizedSearch|s$) | eval contains_lookup=if(like(optimizedSearch, "%lookup%"),1,0) | eval contains_lookup=case(contains_lookup=1,"yes",contains_lookup=0,"no")| table optimizedSearch contains_lookup</query>
<earliest>$time.earliest$</earliest>
<latest>$time.latest$</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="count">10</option>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
</row>
</form>