If I understand your search correctly, you want to search for the amount of errors over 4 different sources and show them in a bar chart. If you already have a key that identifies the source in the separate searches and the "search1-4" is just index and source type etc then try: Lets say each "search" comes from a seperate index. (search1 OR search2 OR search3 OR search4) | eval has_error = if(match(_raw, "WARNING"),1,0) | where has_error=1 | stats count by index Then you have the amount of errors from each key. If it is a more komplex base search try this: search 1 | eval key = "search1" | append [ search search2 | eval key = "search2"] | append [ search search3 | eval key = "search3"] | append [ search search3 | eval key = "search3"] | eval has_error = if(match(_raw, "WARNING"),1,0) | where has_error=1 | stats count by key _______________________________________ If this was helpful please consider awarding Karma. Thx!
... View more