Base search refers to the initial part of the query, for example, it may look like this: index=<index_name> sourcetype=<source_type> | table _time id, type, status, duration As long as you have the fields ( d, type, status, duration) available, this should work: <base_search>
| chart avg(duration) AS avg_duration BY type status
| eval LAST_VAL=0
| foreach IN_QUEUE_* [
| eval CURRENT_VAL=<<FIELD>>
| eval AVG_TIME_<<FIELD>>=<<FIELD>>-LAST_VAL
| eval LAST_VAL=CURRENT_VAL
]
| table type AVG_TIME_*
... View more