Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Is it possible to count the number of times a field occurs within a transaction?

$
0
0
Is it possible to get the number of times a Field occurs within an event? I've read posts on how to arrive at unique values of a Field using mvcount. In my case however I have custom logging that includes the same field=value across multiple lines. I'm trying to find a way of counting the number of times this Field occurs within the transaction, so that I can afterwards filter, perhaps with a where clause, based on that that count. Example logging: (1) RequestId=123 RequestType=A RequestId=123 Consolidate=True RequestId=123 RequestType=A RequestId=123 Consolidate=True (2) RequestId=456 RequestType=A RequestId=456 RequestType=A RequestId=456 Consolidate=True I'm trying to arrive at a search that can build a transaction with RequestId where the count (number of occurrences of Consolidate) is 2. So the search would return the transaction with RequestId 123 but not 456. Hoping this makes sense.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>