Hi, can anybody help, please? Here the code and small description. | inputlookup tmp.csv
| where workplaceId=111
| sort - Zeitstempel
| tail [
| inputlookup tmp.csv
| where workplaceId=111
| sort - Zeitstempel
| stats count as search
| eval search=search-1
| fields search]]
| append [
| inputlookup tmp.csv
| where workplaceId=112
| sort - Zeitstempel
| tail [
| inputlookup tmp.csv
| where workplaceId=112
| sort - Zeitstempel
| stats count as search
| eval search=search-1
| fields search]]
| eval prod="testtest"
| eval _time=Zeitstempel
| fields _time, Zeit, Zeitstempel, workplaceId, workplace, App, state, prod
| collect index=workplace source="workplace_app" addtime=f testmode=f Description: the code takes the [first:last-1] entries from the lookup table tmp.csv for every specific workplaceId. An error occures, if there is count(workplaceId)<2 entries. Goal: how to skip, if | stats count as search <2? How to skip the whole append part of the code. Or is there any exception for error states of tail? Or any idea for smart workaround? I can send to index empty, or dummy entries.
... View more