If all four fields are already extracted as date, device, daily_avg, threshold then all you need to do is
your query to return date, device, daily_avg, threshold
| table device, daily_avg, threshold, date
If date is not extracted then you can use _time
your query to return device, daily_avg, threshold
| eval date=strftime(_time, "%Y-%m-%d")
| table device, daily_avg, threshold , date
If the fields are not already extracted then extract them first as below and then table:
your query to return events
|rex "(?<date>\d{4}\/\d{2}\/\d{2})\s.*Device\=(?<device>[\S]+)\s.*Daily_AVG\=(?<dailyAvg>[\S]+)\s*Threshold\=(?<threshold>[\S]+)\s*"
| table device, dailyAvg, threshold , date
| fillnull value="NULL"
| search device!="NULL" AND dailyAvg!="NULL" AND threshold!="NULL" AND date!="NULL"
Updated the fillnull piece as per comments
See extraction here
... View more