Timelion Kibana Error : Syntax Error / Incomplete function

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.

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')

Hi Chrisronline,

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

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