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!

Pro Tips for First-Time .conf Attendees: Advice from SplunkTrust

Heading to your first .Conf? You’re in for an unforgettable ride — learning, networking, swag collecting, ...

Raise Your Skills at the .conf25 Builder Bar: Your Splunk Developer Destination

Calling all Splunk developers, custom SPL builders, dashboarders, and Splunkbase app creators – the Builder ...

Hunt Smarter, Not Harder: Discover New SPL “Recipes” in Our Threat Hunting Webinar

Are you ready to take your threat hunting skills to the next level? As Splunk community members, you know the ...