Reputation: 7508
I want to find throughput for target events. I identify my target events by EVENT_PROCESSED. So my query is:
index=myIndex namespace=myNamespace host=myHost log=\*EVENT_PROCESSED* | bucket _time span=1h | chart count(EVENT_PROCESSED)/3600 as throughput by _time
But it doesn't work. Error is:
Error in 'chart' command: The data field 'count(EVENT_PROCESSED)/3600' is malformed.
What mistake am I making here?
Upvotes: 0
Views: 754
Reputation: 33453
Use timechart
:
index=myIndex namespace=myNamespace host=myHost log=\*EVENT_PROCESSED*
| timechart span=1h count(log) as count
###edit - change to field name (log) from field value
Upvotes: 1