Hey people,
I have a simple search I can't get to work. I've tried to look up solutions, but couldn't find anything that worked for me.
index="servers"
|timechart count(eval(status="On")) as on count and total eval(round(on/total*100))
I keep getting this error: The eval expression has no fields: 'round(on/total*100)'
try this,
index=servers |timechart count(eval(sourcetype="splunkd")) as on , count as total | eval percent=(round(on/total*100))
try this,
index=servers |timechart count(eval(sourcetype="splunkd")) as on , count as total | eval percent=(round(on/total*100))
Thank you!