elastic / timelion

Timelion was absorbed into Kibana 5. Don't use this. Time series composer for Elasticsearch and beyond.
Other
347 stars 79 forks source link

Error: in cell #1: `metric` requires metric:field or simply count #154

Closed devoncrouse closed 8 years ago

devoncrouse commented 8 years ago

After upgrading from Kibana 4.5.1->4.5.2, many of our Timelion expressions fail. Not seeing any documented changes to the syntax - am I missing something? Thanks!

Working:

.es(index='logstash_*')

Previously working; now produces error:

.es(index="logstash_*", metric="sum:value")
Error: in cell #1: `metric` requires metric:field or simply count

Previously working; now produces error:

.es(index="logstash_*", split="name:10")
Error: in cell #1: `split` requires field:limit
ajviradia commented 8 years ago

After upgrading from the 4.5.1 -> 4.5.3 yesterday, Timelion expressions are failing for us as well.

Interestingly, I found if the lucene query in the expression uses = instead of : , Timelion renders the graph for each character in the name of the field :(

Expression : *es(index=app_logs-,q="fields.ThreadId:9")** get me following error: Timelion: Error: in cell #1: [query_parsing_exception] Failed to parse query [:], with: {"index":"app_logs-2016.07.15","line":1,"col":693}

Expression : *es(index=app_logs-,q="fields.ThreadId=9")** gets me a graph with series for f,i,e,l,d,s....... graph

vineetgoel commented 8 years ago

Getting the same error as @devoncrouse I tried @ajviradia's fix by trying metric='sum=<field_name>' but without luck.

rashidkpc commented 8 years ago

My bad, fixed here: https://github.com/elastic/timelion/commit/41f5acf193e44afacf36f6c9f3b9f3bf7feca993

rashidkpc commented 8 years ago

Also, now released

devoncrouse commented 8 years ago

👍 verified working for us; thanks again.