Since there is no stats command in the search I thought it is normal to show 1,2,3.... The last row will show the count of events. Maybe you can try below query. |datamodel events_prod events summariesonly=true flat
| search _time>=1597968172.000 _time<=1598146450.0001 eventtype="csm-messages" tail_id=AN
| eval crate_path=source, count=1
| rename kafka_uuid as uuid, _time as timestamp, _raw as data
| fields uuid, timestamp , data, crate_path
| dedup uuid
| sort 0 - timestamp
| head 1000
| addcoltotals labelfield="Total events" count
... View more