I have a log with payload something like this:
"Stats":[ {
errors: 0
type: "Disc"
success: 878
},
{
errors: 21
type: "cronJob"
success: 25
},
{
errors: 0
type: "File"
success: 8787
},
{
errors: 15
type: "Unknown"
success: 0
}]
I need to get the get rid of the "Unknown" type object and get the sum of the remaining values
I am able to get the sum of all errors but for the events with type Unknown I am not sure how to do that. Could you please help?
<search>|rename Stats{}.type= as type|eventstats sum(errors) as ErrorCount
This is my current seach without excluding Unknown type. how to I incorporate the logic to exclude Unknown counts