The stats command is a transforming command so it discards any fields it doesn't produce or group by. Add new fields to stats to get them in the output. | makeresults count=1
| addinfo
| eval days=mvrange(info_min_time, info_max_time, "1d")
| mvexpand days
| eval _time=days, count=0
| append [ search index="*appevent" Type="*splunk"
| bucket _time span=day
| stats count by _time, Type ]
| stats max(count) as Total by _time, Type
| eval "New_Date"=strftime(_time,"%Y-%m-%d")
| table "New_Date" "Total" Type
... View more