Timelion Expression is not supporting .offset function

I am trying to visualize the counts of one field for this month and compare it with the count for the next month. I am using the time lion expression with .offset -1m but the same is not working. It gives me an error. My expression is like this. .es(offset=-1y, index=notifications_100, timefield='createDate', metric='count:docId').label('count of doc in the last year)
.es(index=notifications_100, timefield='createDate', metric='count:docId').label('count of doc in the current year) and the error is this. - [timelion_vis] > Timelion request error: {"type":"incompleteFunction","function":"label","location":{"min":86,"max":92},"text":".label"}. Please help me with this.

I am trying to visualize the counts of one field for this month and compare it with the count for the next month. I am using the time lion expression with .offset -1m but the same is not working. It gives me an error. My expression is like this.

.es(offset=-1m, index=notifications_100, timefield='createDate', metric='count:docId').label('count of doc in the last year)
.es(index=notifications_100, timefield='createDate', metric='count:docId')
.label('count of doc in the current year)

and the error is this.

  • [timelion_vis] > Timelion request error: {"type":"incompleteFunction","function":"label","location":{"min":86,"max":92},"text":".label"}.

Please help me with this.

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