0

I am not able to find a Splunk query to count the number of occurences of a string across events.

My string is:

"\"IsFeedback\":true"

I tried this but it doesn't count the number of occurrences of the string across events:

host="HOST001" AND "\"IsFeedback\":true" 

I want the occurrence of "\"IsFeedback\":true" across all events.

freginold
  • 3,946
  • 3
  • 13
  • 28
Bhaskar Mishra
  • 3,332
  • 7
  • 26
  • 36
  • Does it return an incorrect count? No results? – freginold Nov 20 '17 at 12:58
  • @reginold : it returns me the same result as it does with out STATS COUNTS. I want to get the count of the string across all events, like a string count. In one event i have multiple count of the same string. – Bhaskar Mishra Nov 23 '17 at 15:53

1 Answers1

-1

Try this:

index=xxxx sourcetype=xxxx host="HOST001" "\"IsFeedback\":true" | stats count
freginold
  • 3,946
  • 3
  • 13
  • 28
skoelpin
  • 212
  • 1
  • 5