I am having trouble charting some data by hour and consoleID. Below is the search I used. I can use the stats function to count by hour, but it doesn't show well in my dashboard. I am looking to have this same format, but use the field date_hour in the chart count function.
| chart count over pedestalName by date_hour, consoleID ? I know this doesn't work, but in my head this is what should work.
index="sg_log" host=PACSTAPP1 "" "OUTGATE" "COMPLETE" "SMT" NOT "TROUBLE_LANE"
| xmlkv
| eval consoleID=if(consoleID="AUTO","AUTO","MANUAL")
| chart count over pedestalName by consoleID
| eval total=round(AUTO+MANUAL)
| WHERE pedestalName IN ("21","22","23","24","25","26")
| eval autogate%=round(AUTO/(AUTO+MANUAL)*100,2)
... View more