Hi All,
I want chart to be created in the below way. The x-axis needs to have date and time like that.
the chart i am able to create is .
i tried to do eval strftime to _time but not getting the desired result. The 1st query I tried - index=unix (source=cpu sourcetype=cpu) OR (sourcetype=vmstat) host IN (usaws135000) | fields _time cpu_load_percent memUsedPct swapUsedPct host | timechart span=1h eval(round(avg(cpu_load_percent),2)) as CPUAvg eval(round(avg(memUsedPct),2)) as MemoryAvg eval(round(avg(swapUsedPct),2)) as SwapAvg by host useother=t limit=0 The 2nd query i tried - index=unix (source=cpu sourcetype=cpu) OR (sourcetype=vmstat) host IN (usaws1350) | fields _time cpu_load_percent memUsedPct swapUsedPct host | bin span=1h _time | eval _time=strftime(_time,"%a %b %d %Y %H:%M:%S") | stats avg(cpu_load_percent) as CPUAvg avg(memUsedPct) as MemoryAvg avg(swapUsedPct) as SwapAvg by _time
... View more