index="index1" sourcetype=sourcetype1 | join commonfield [ search <br>index="index2" sourcetype=sourcetype2 ] | sort _time | stats <br>last(index1field1) as state by index2field1, index1field2, index1field3 <br>| where index1field1 != "UP" | dedup index2field1 | stats count
Я хочу оптимизировать этот запрос без объединения с использованием статистики и ИЛИ, кто-нибудь может мне помочь?