Skip to content

Commit faaa83a

Browse files
committed
New alerts:
- `MonitoringConsole - one or more servers require configuration` - `MonitoringConsole - one or more servers require configuration automated` - `SearchHeadLevel - Peer timeouts or authentication issues` New macros: - `splunkadmins_macro_sub` New reports: - `SearchHeadLevel - Datamodel REST endpoint indexes in use` - `SearchHeadLevel - Job performance data per indexer` - `SearchHeadLevel - Jobs endpoint example` - `SearchHeadLevel - configtracker index example` Updated alerts: - `AllSplunkEnterpriseLevel - Splunkd Log Messages Admins Only` - more criteria - `SearchHeadLevel - Search Messages user level` - more criteria - `SearchHeadLevel - Search Messages admins only` - more criteria Updated dashboards: - `splunk_forwarder_output_tuning` - to reference NLB/load balanced version of asynchronous forwarding Updated macros: - `whataccessdoihave` - comments and added srchIndexesDisallowed Updated reports: - `SearchHeadLevel - IndexesPerRole Remote Report` - comment updates only - `SearchHeadLevel - Lookup file owners` - comment updates only Alerts added to future removal list: - `ClusterMasterLevel - Per index status` Updated to use `splunkadmins_macro_sub` macro: - `SearchHeadLevel - Dashboards with all time searches set` - `SearchHeadLevel - Scheduled searches not specifying an index macro version` - `SearchHeadLevel - Search Queries By Type Audit Logs macro version` - `SearchHeadLevel - Search Queries By Type Audit Logs macro version other` - `SearchHeadLevel - Search Queries summary exact match` - `SearchHeadLevel - Search Queries summary non-exact match` - `SearchHeadLevel - User - Dashboards searching all indexes macro version` Misc: - Added supported themes settings in app.conf to allow the usage of dark theme (for 9.1 enterprise users and above)
1 parent 7e65ce1 commit faaa83a

File tree

6 files changed

+245
-40
lines changed

6 files changed

+245
-40
lines changed

README.md

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Are all well suited to an automated email using the sendresults command or a sim
181181
## Which alerts and reports have been tested on the newer Splunk versions such as 8.2 or 9.0?
182182
This application was first created in 2017 and both Splunk and the application have evolved during this time period. This application is a library of potential alerts that could be used in a Splunk environment so it would never be a good idea to turn on all alerts from this application.
183183

184-
The below list of alerts and reports are actively used since version 8.0.x and in 8.2.x and eventually 9.0:
184+
The below list of alerts and reports are actively used since version 8.0.x and in 8.2.x and eventually 9.0.x:
185185
- `AllSplunkEnterpriseLevel - error in stdout.log`
186186
- `AllSplunkEnterpriseLevel - Email Sending Failures`
187187
- `AllSplunkEnterpriseLevel - Losing Contact With Master Node`
@@ -224,6 +224,8 @@ The below list of alerts and reports are actively used since version 8.0.x and i
224224
- `MonitoringConsole - Check OS ulimits via REST`
225225
- `MonitoringConsole - Core dumps have appeared on the filesystem`
226226
- `MonitoringConsole - Crash logs have appeared on the filesystem`
227+
- `MonitoringConsole - one or more servers require configuration`
228+
- `MonitoringConsole - one or more servers require configuration automated`
227229
- `SearchHeadLevel - audit.log - lookup usage`
228230
- `SearchHeadLevel - authorize.conf settings will prevent some users from appearing in the UI`
229231
- `SearchHeadLevel - Captain Switchover Occurring`
@@ -245,6 +247,7 @@ The below list of alerts and reports are actively used since version 8.0.x and i
245247
- `SearchHeadLevel - Lookup file owners`
246248
- `SearchHeadLevel - Lookups within dashboards`
247249
- `SearchHeadLevel - Lookups within savedsearches`
250+
- `SearchHeadLevel - Peer timeouts or authentication issues`
248251
- `SearchHeadLevel - platform_stats access summary`
249252
- `SearchHeadLevel - platform_stats.audit metrics api`
250253
- `SearchHeadLevel - platform_stats.audit metrics searches`
@@ -323,13 +326,49 @@ Feel free to open an issue on github or use the contact author on the SplunkBase
323326

324327
## Release Notes
325328
### 3.0.12
329+
New alerts:
330+
- `MonitoringConsole - one or more servers require configuration`
331+
- `MonitoringConsole - one or more servers require configuration automated`
332+
- `SearchHeadLevel - Peer timeouts or authentication issues`
333+
326334
New macros:
327-
- splunkadmins_macro_sub
335+
- `splunkadmins_macro_sub`
328336

329337
New reports:
330-
- SearchHeadLevel - Datamodel REST endpoint indexes in use
331-
- SearchHeadLevel - Job performance data per indexer
332-
- SearchHeadLevel - Jobs endpoint example
338+
- `SearchHeadLevel - Datamodel REST endpoint indexes in use`
339+
- `SearchHeadLevel - Job performance data per indexer`
340+
- `SearchHeadLevel - Jobs endpoint example`
341+
- `SearchHeadLevel - configtracker index example`
342+
343+
Updated alerts:
344+
- `AllSplunkEnterpriseLevel - Splunkd Log Messages Admins Only` - more criteria
345+
- `SearchHeadLevel - Search Messages user level` - more criteria
346+
- `SearchHeadLevel - Search Messages admins only` - more criteria
347+
348+
Updated dashboards:
349+
- `splunk_forwarder_output_tuning` - to reference NLB/load balanced version of asynchronous forwarding
350+
351+
Updated macros:
352+
- `whataccessdoihave` - comments and added srchIndexesDisallowed
353+
354+
Updated reports:
355+
- `SearchHeadLevel - IndexesPerRole Remote Report` - comment updates only
356+
- `SearchHeadLevel - Lookup file owners` - comment updates only
357+
358+
Alerts added to future removal list:
359+
- `ClusterMasterLevel - Per index status`
360+
361+
Updated to use `splunkadmins_macro_sub` macro:
362+
- `SearchHeadLevel - Dashboards with all time searches set`
363+
- `SearchHeadLevel - Scheduled searches not specifying an index macro version`
364+
- `SearchHeadLevel - Search Queries By Type Audit Logs macro version`
365+
- `SearchHeadLevel - Search Queries By Type Audit Logs macro version other`
366+
- `SearchHeadLevel - Search Queries summary exact match`
367+
- `SearchHeadLevel - Search Queries summary non-exact match`
368+
- `SearchHeadLevel - User - Dashboards searching all indexes macro version`
369+
370+
Misc:
371+
- Added supported themes settings in app.conf to allow the usage of dark theme (for 9.1 enterprise users and above)
333372

334373
### 3.0.11
335374
Updated alerts:

default/app.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ is_configured = 0
88
[ui]
99
is_visible = 1
1010
label = SplunkAdmins
11+
# allow 9.1 and above to use themes
12+
supported_themes = light,dark
1113

1214
[launcher]
1315
author = Gareth Anderson
1416
description = Alerts and dashboards as described in the Splunk 2017 conf presentation How did you get so big?
15-
version = 3.0.11
17+
version = 3.0.12
1618

1719
[package]
1820
id = SplunkAdmins

default/data/ui/nav/default.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@
313313
<saved name="SearchHeadLevel - Lookups within savedsearches" />
314314
<saved name="SearchHeadLevel - Job performance data per indexer" />
315315
<saved name="SearchHeadLevel - Jobs endpoint example" />
316+
<saved name="SearchHeadLevel - configtracker index example" />
316317
<saved name="IndexerLevel - RemoteSearches Indexes Stats" />
317318
<saved name="IndexerLevel - RemoteSearches Indexes Stats Wilcard" />
318319
<saved name="IndexerLevel - RemoteSearches - lookup usage" />
@@ -321,7 +322,7 @@
321322
<saved name="SearchHeadLevel - Data Model Acceleration Completion Status" />
322323
<saved name="SearchHeadLevel - DataModel Fields" />
323324
<saved name="SearchHeadLevel - Accelerated DataModels Access Info" />
324-
<saved name="SearchHeadLevel - Datamodel REST endpoint indexes in use" />
325+
<saved name="SearchHeadLevel - Datamodel REST endpoint indexes in use" />
325326
<saved name="IndexerLevel - DataModel Acceleration - Indexes in use" />
326327
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FSearchHeadLevel%20-%20datamodel%20errors%20in%20splunkd">datamodel errors in splunkd</a>
327328
<view name="data_model_rebuild_monitor" />
@@ -343,7 +344,8 @@
343344
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FSearchHeadLevel%20-%20datamodel%20errors%20in%20splunkd">datamodel errors in splunkd</a>
344345
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FIndexerLevel%20-%20SmartStore%20-%20Bucket%20cache%20errors%20audit%20logs">IndexerLevel - SmartStore - Bucket cache errors audit logs</a>
345346
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FAllSplunkLevel%20-%20No%20recent%20metrics.log%20data">AllSplunkLevel - No recent metrics.log data</a>
346-
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FSearchHeadLevel%20-%20Detect%20bundle%20pushes%20no%20longer%20occurring">SearchHeadLevel - Detect bundle pushes no longer occurring</a>
347+
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FSearchHeadLevel%20-%20Detect%20bundle%20pushes%20no%20longer%20occurring">Detect bundle pushes no longer occurring</a>
348+
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FSearchHeadLevel%20-%20Peer%20timeouts%20or%20authentication%20issues">Peer timeouts or authentication issues</a>
347349
<collection label="Generic">
348350
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FAllSplunkEnterpriseLevel%20-%20Splunkd%20Log%20Messages%20Admins%20Only">Splunkd Log Messages Admins Only</a>
349351
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FSearchHeadLevel%20-%20Search%20Messages%20user%20level">Search Messages user level</a>
@@ -548,5 +550,7 @@
548550
<collection label="MonitoringConsole">
549551
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FMonitoringConsole%20-%20Core%20dumps%20have%20appeared%20on%20the%20filesystem">Core dumps have appeared on the filesystem</a>
550552
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FMonitoringConsole%20-%20Crash%20logs%20have%20appeared%20on%20the%20filesystem">Crash logs have appeared on the filesystem</a>
553+
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FMonitoringConsole%20-%20one%20or%20more%20servers%20require%20configuration">one or more servers require configuration</a>
554+
<a href="/app/SplunkAdmins/alert?s=%2FservicesNS%2Fnobody%2FSplunkAdmins%2Fsaved%2Fsearches%2FMonitoringConsole%20-%20one%20or%20more%20servers%20require%20configuration%20automated">one or more servers require configuration automated</a>
551555
</collection>
552556
</nav>

default/data/ui/views/splunk_forwarder_output_tuning.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
<p>Purpose of the data output per-second timechart? The current goal is to get close to switching indexers every second for an output group (per-pipeline), note that this will result in more open connections to indexers so only really works if this is deployed to a moderate number of intermediate forwarders (HF's or similar). Note that you want to do this with autoLBVolume, if you lower autoLBFrequency to a very short time period you may result in un-even data balance due to switching frequently when forwarding smaller volumes of data. In my testing so far it would appear that aiming above the average kb/s for the autoLBVolume appears to work well, going too low doesn't work well in my testing so far</p>
110110
<p>Please read the linked article for information on these settings, note that when using async forwarding the open file descriptor usage is higher than without async forwarding as the connections are held open by forwarders. So this works great on an intermediate forwarding tier, this may not work so well with a very large number of forwarders</p>
111111
<p>Also note that the maxQueueSize should not be below 10MB (10MB minimium size)</p>
112+
<p>If you are using an AWS NLB, you may wish to refer to this newer post <a href="https://www.linkedin.com/posts/harendra-rawat-b10b41_asynchronous-forwarding-with-nlb-activity-7112204069363933185-SYRv"> Asynchronous forwarding with NLB</a></p>
112113
<p>Finally while this also works on UF's, there are some reasons why you may want to consider HF's if you are running an intermediate tier, answers post <a href="https://community.splunk.com/t5/Getting-Data-In/Wrongly-merged-Events-permanently-blocked-tcpout-queue-with/m-p/508743">Wrongly merged Events/permanently blocked tcpout queue with Intermediate Universal Forwarder</a></p>
113114
<br/>
114115
<p>What config is used to achieve the above?</p>

default/macros.conf

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -529,21 +529,21 @@ iseval = 0
529529

530530
[whataccessdoihave]
531531
definition = rest /services/authentication/users splunk_server=local\
532-
| search `comment("REST query is limited to the current search head this is running on. If users have the dispatch REST to indexers capability then ise the 'What Access Do I Have' version' for more detail")`\
532+
| search `comment("REST query is limited to the current search head this is running on so we see the index access from this instances point of view")`\
533533
[| rest /services/authentication/current-context/context splunk_server=local\
534534
| head 1 \
535535
| fields username \
536536
| rename username AS title] \
537537
| table title roles | rename title as user | mvexpand roles\
538538
| join type=left roles \
539539
[rest /services/authorization/roles splunk_server=local\
540-
| table title srchIndexesAllowed srchIndexesDefault imported_srchIndexesAllowed imported_srchIndexesDefault | rename title as roles]\
541-
| fillnull value="" srchIndexesAllowed, srchIndexesDefault, imported_srchIndexesAllowed, imported_srchIndexesDefault\
542-
| eval srchIndexesAllowed = srchIndexesAllowed . " " . imported_srchIndexesAllowed, srchIndexesDefault = srchIndexesDefault . " " . imported_srchIndexesDefault\
543-
| makemv srchIndexesAllowed tokenizer=(\S+) | makemv srchIndexesDefault tokenizer=(\S+)\
540+
| table title srchIndexesAllowed srchIndexesDefault srchIndexesDisallowed imported_srchIndexesAllowed imported_srchIndexesDefault imported_srchIndexesDisallowed | rename title as roles]\
541+
| fillnull value="" srchIndexesAllowed, srchIndexesDefault, srchIndexesDisallowed, imported_srchIndexesAllowed, imported_srchIndexesDefault imported_srchIndexesDisallowed\
542+
| eval srchIndexesAllowed = srchIndexesAllowed . " " . imported_srchIndexesAllowed, srchIndexesDefault = srchIndexesDefault . " " . imported_srchIndexesDefault, srchIndexesDisallowed = srchIndexesDisallowed . " " . imported_srchIndexesDisallowed \
543+
| makemv srchIndexesAllowed tokenizer=(\S+) | makemv srchIndexesDefault tokenizer=(\S+) | makemv srchIndexesDisallowed tokenizer=(\S+) \
544544
| eval indexes= [ | eventcount summarize=false index=* index=_* | stats values(index) AS indexes | eval theindexes="\"" . mvjoin(indexes, " ") . "\"" | return $theindexes ]\
545545
| makemv indexes\
546-
| stats values(roles) AS roles, values(indexes) AS indexes, values(srchIndexesAllowed) AS srchIndexesAllowed, values(srchIndexesDefault) AS srchIndexesDefault by user
546+
| stats values(roles) AS roles, values(indexes) AS indexes, values(srchIndexesAllowed) AS srchIndexesAllowed, values(srchIndexesDefault) AS srchIndexesDefault, values(srchIndexesDisallowed) AS srchIndexesDisallowed by user
547547

548548
[diskusage]
549549
definition = rest /services/authentication/current-context/context splunk_server=local \
@@ -646,7 +646,6 @@ definition = search `comment("Set all values to null() in case this macro is cal
646646
| eval search=if(isnotnull(macro_name),replace($fieldname$,mvindex(macro_name,0),definition),$fieldname$)
647647
iseval = 0
648648

649-
650649
#Note this macro requires TA-webtools
651650
#Alternatively the "Mothership app" on SplunkBase can be used for this purpose...
652651
[splunkadmins_remote_macros(3)]

0 commit comments

Comments
 (0)