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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...