Skip to content

Commit 8310d26

Browse files
authored
Merge pull request #24 from sifters/sifters
Replace comment macro with triple backticks. Edits made to change single line `comment` to multiline ``` options in various locations. Removed \" and changed to " as double quotes are not an issue with ```
2 parents fd1086b + 6b5641a commit 8310d26

File tree

7 files changed

+470
-470
lines changed

7 files changed

+470
-470
lines changed

default/data/ui/views/data_model_rebuild_monitor.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@
150150
</single>
151151
<single>
152152
<search>
153-
<query>`comment("The authors original attempt of | `datamodel(\"Splunk_Audit\", \"Datamodel_Acceleration\")` | `drop_dm_object_name(\"Datamodel_Acceleration\")` Just did not appear to show accurate numbers when compared to the filesystem of the indexers")`
154-
`comment("The previous attempt at this number via | rest \"/services/admin/introspection--disk-objects--summaries?count=-1\" ... worked fine *unless* there were multiple search head GUID's in the introspection data in which case it seems to return 1 set only (resulting in highly inaccurate numbers in some cases")`
155-
`comment("Now querying the introspection data instead as that provides consistently accurate numbers")`
153+
<query>```The authors original attempt of | `datamodel("Splunk_Audit", "Datamodel_Acceleration | `drop_dm_object_name("Datamodel_Acceleration")` Just did not appear to show accurate numbers when compared to the filesystem of the indexers
154+
The previous attempt at this number via | rest "/services/admin/introspection--disk-objects--summaries?count=-1" ... worked fine *unless* there were multiple search head GUID's in the introspection data in which case it seems to return 1 set only (resulting in highly inaccurate numbers in some cases)
155+
Now querying the introspection data instead as that provides consistently accurate numbers```
156156
index=_introspection `indexerhosts` component=summaries "data.name"=*$dm$
157157
| stats latest(data.total_size) AS size by data.search_head_guid, data.related_indexes_count, data.related_indexes, host
158158
| stats sum(size) AS size</query>

default/data/ui/views/issues_per_sourcetype.xml

Lines changed: 21 additions & 21 deletions
Large diffs are not rendered by default.

default/data/ui/views/knowledge_objects_by_app.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<query>| rest "/servicesNS/-/$app$/directory" count=0 splunk_server=local
2727
| search eai:acl.app=$app$
2828
| rename eai:type AS type
29-
| search type!="macros" `comment("macros only appears in really new versions of Splunk via the directory endpoint, so assume it doesn't exist in this query")`
29+
| search type!="macros" ```macros only appears in really new versions of Splunk via the directory endpoint, so assume it doesn't exist in this query```
3030
| stats count by type
3131
| fields - count</query>
3232
<earliest>-24h@h</earliest>

default/data/ui/views/smartstore_stats.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<title>CacheManager Queued download count</title>
102102
<chart>
103103
<search>
104-
<query>`comment("Relates to [cachemanager] max_concurrent_downloads in server.conf. Thanks to Splunk support for the original version of this search")` index=_internal $host$ `splunkadmins_metrics_source` TERM(group=cachemgr_download) sourcetype=splunkd queued
104+
<query>```Relates to [cachemanager] max_concurrent_downloads in server.conf. Thanks to Splunk support for the original version of this search``` index=_internal $host$ `splunkadmins_metrics_source` TERM(group=cachemgr_download) sourcetype=splunkd queued
105105
| timechart partial=f limit=50 avg(queued) AS avg_queued by host
106106
| eval ceiling=20</query>
107107
<earliest>$time.earliest$</earliest>
@@ -136,7 +136,7 @@
136136
<title>Excessive cachemanager downloads</title>
137137
<chart>
138138
<search>
139-
<query>`comment("Thanks to Splunk support for the original version of this search, similar version available in the monitoring console...")` index=_internal $host$ `splunkadmins_splunkd_source` sourcetype=splunkd CacheManager TERM(action=download) TERM(status=succeeded) TERM(download_set=*)
139+
<query>```Thanks to Splunk support for the original version of this search, similar version available in the monitoring console...``` index=_internal $host$ `splunkadmins_splunkd_source` sourcetype=splunkd CacheManager TERM(action=download) TERM(status=succeeded) TERM(download_set=*)
140140
| rex field=cache_id "&gt;*\|(?&lt;index_name&gt;.*)~.*~.*\|"
141141
| eval identifier=(cache_id + host)
142142
| stats count by identifier, index_name
@@ -159,7 +159,7 @@
159159
<title>CacheManager downloads by age/index</title>
160160
<chart>
161161
<search>
162-
<query>`comment("Thanks to Splunk support for the original version of this search")` index=_audit $host$ TERM(action=remote_bucket_download) TERM(info=completed)
162+
<query>```Thanks to Splunk support for the original version of this search``` index=_audit $host$ TERM(action=remote_bucket_download) TERM(info=completed)
163163
| eval gbps=kb/1024/1024
164164
| eval age=round((now()-earliest_time)/60/60/24)
165165
| bucket span=30 age

default/data/ui/views/splunk_forwarder_output_tuning.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<title>Data output std deviation</title>
8181
<chart>
8282
<search>
83-
<query>`comment("Credit to Brett Adams")` index=_internal $host$ sourcetype=splunkd `splunkadmins_metrics_source` component=Metrics TERM(group=tcpout_connections) name=$output_group$*
83+
<query>```Credit to Brett Adams``` index=_internal $host$ sourcetype=splunkd `splunkadmins_metrics_source` component=Metrics TERM(group=tcpout_connections) name=$output_group$*
8484
| rex field=name "(?P&lt;destination&gt;[^:]+)"
8585
| search destination=$output_group$*
8686
| timechart span=1m sum(kb) by destIp limit=50

0 commit comments

Comments
 (0)