Monitoring Splunk

Monitor the count of columns generated by solutionType=* | splunk reports

harkirat9712
Explorer

I would like to track count of the all the below splunk search query columns. if any "solutionType" is appended or deleted I expect alert.

index=index1 | search solutionType=* | timechart count by solutionType | result below

column1 column2 column3 column4 column5

if column6 is added in next splunk report. or col5 is removed I expect alert.

if current_col_count != 5

I would like to track if any "solutionType" is appended or deleted in next splunk report expect alert.

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

This will give you the number of columns, set your alert to trigger when it's not five:

index=index1 solutionType=* | stats dc(solutionType) as current_col_count

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

This will give you the number of columns, set your alert to trigger when it's not five:

index=index1 solutionType=* | stats dc(solutionType) as current_col_count
0 Karma
Get Updates on the Splunk Community!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...