Timelion Kibana Error : Syntax Error / Incomplete function


(Harsh Sharma) #1

Hello Everyone,

While I'm using Timelion feature I'm getting below error -

Timelion: SyntaxError: {"type":"incompleteFunction","function":"es","location":{"min":0,"max":3},"text":".es"}
Visualize: SyntaxError: {"type":"incompleteFunction","function":"es","location":{"min":0,"max":3},"text":".es"}

My Timelion Expression is Below -

.es(index='mtest*’, q='"PaymentStatus: COMPLETED"', metric='count', offset=-7d, timefield='@timestamp').lines(width=2, fill=2).label('thisdaylastweek_Count'), .es(index='mtest*’, q='"PaymentStatus: COMPLETED"', metric='count', timefield='@timestamp').lines(width=3).label('current_Count').title(‘Payment_Status_Trend')

Please suggest. Thanks.


(Chris Roberson) #2

Hi @Harsh_Sharma,

You have three stray and characters instead of the single quote character '. Try replacing those and it should look like:

.es(index='mtest*', q='"PaymentStatus: COMPLETED"', metric='count', offset=-7d, timefield='@timestamp').lines(width=2, fill=2).label('thisdaylastweek_Count'), .es(index='mtest*', q='"PaymentStatus: COMPLETED"', metric='count', timefield='@timestamp').lines(width=3).label('current_Count').title('Payment_Status_Trend')

(Harsh Sharma) #3

Hi Chrisronline,

Thanks man, its working. now I got the issue. :slight_smile:


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.