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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...