can you specify index or sourcetype or source in append search? this will limit search to that particular index or sourcetype or source and performance will improve. your sub search used in append : search routingKey=routingCLBT_Infrastructure_Operations # this will return only one routingKey
| top limit=50 routingKey # you will only get one result with 3 headers routingKey count percent and percent is 100% here since you have applied filter already and routingKey has only one at the moment.
| stats sum(count) as count, avg(percent) as percent # it has no effect
| eval routingKey="CLBT" # creating field and assigning static value. I would suggest below search in append command: | append [search index=<specify_index>
| stats count by routingKey
| eventstats sum(count) as total
| eval percent=round((count/total)*100,2)
| search routingKey=routingCLBT_Infrastructure_Operations
| eval routingKey="CLBT"]
... View more