# Timelion:Error

**URL:** https://discuss.elastic.co/t/timelion-error/125079
**Category:** Kibana
**Tags:** timelion
**Created:** [March 21, 2018, 9:13pm UTC](https://discuss.elastic.co/t/timelion-error/125079 "2018-03-21T21:13:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chandukreddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandukreddi/32/29241_2.png) [@chandukreddi](https://discuss.elastic.co/u/chandukreddi)
#### Post date: [March 21, 2018, 9:13pm UTC](https://discuss.elastic.co/t/timelion-error/125079/1 "2018-03-21T21:13:55Z")

</div>

Hello Experts,

I am trying compare success hit rate using Timelion feature.

**This is my query:** (I learned from youtube)  
.es(index=swift-proxy-log-_, q=status\_code:200).label('current') .es(index=swift-proxy-log-_, q=status\_code:200).label('previous')

but I am running into below error: **strong text**  
Timelion: Error: in cell #1: [parsing\_exception] [query\_string] unknown token [START\_OBJECT] after [query], with { line=1 & col=223 }

I really appreciate your help!

Thanks  
Chandra

---

<div class="post-metadata">

### Author: ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)
#### Post date: [March 21, 2018, 10:04pm UTC](https://discuss.elastic.co/t/timelion-error/125079/2 "2018-03-21T22:04:33Z")

</div>

I think you just need a comma between the two es statements. Try

```auto
.es(index=log*, q=status_code:200).label('current'), .es(index=log*, q=status_code:200).label('previous')

```

(but use your index pattern - I swapped mine in to test)

---

<div class="post-metadata">

### Author: ![chandukreddi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandukreddi/32/29241_2.png) [@chandukreddi](https://discuss.elastic.co/u/chandukreddi)
#### Post date: [March 22, 2018, 4:01pm UTC](https://discuss.elastic.co/t/timelion-error/125079/3 "2018-03-22T16:01:04Z")

</div>

Awesome It worked!

Could you please help on this question?

> [@Help needed to create VISUALIZATION](https://discuss.elastic.co/t/help-needed-to-create-visualization/123934/7):
>
> Can you index it as a number?

Thanks  
Chandra

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 19, 2018, 4:01pm UTC](https://discuss.elastic.co/t/timelion-error/125079/4 "2018-04-19T16:01:19Z")

</div>

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