# Q="xxxx" not working on timelion when use metric

**URL:** <https://discuss.elastic.co/t/q-xxxx-not-working-on-timelion-when-use-metric/69394>\
**Category:** Kibana\
**Created:** [December 19, 2016, 6:53am UTC](https://discuss.elastic.co/t/q-xxxx-not-working-on-timelion-when-use-metric/69394 "2016-12-19T06:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chen\_Jian](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@Chen\_Jian](https://discuss.elastic.co/u/Chen_Jian)\
**Post date:** [December 19, 2016, 6:53am UTC](https://discuss.elastic.co/t/q-xxxx-not-working-on-timelion-when-use-metric/69394/1 "2016-12-19T06:53:52Z")

</div>

Hi -

I try to monitor 5 nodes logstash ingress rate with:

```
.es(index='logstash-metrics', q='message:ls-index1', metric=max:events.rate_1m),.es(index='logstash-metrics', q='message:ls-index2', metric=max:events.rate_1m)

```

Each logstash node ingress rate is different but the line chart not changed, seems the query statement (q='message:ls-index1') is not working on timelion.

Any idea?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [December 19, 2016, 10:19pm UTC](https://discuss.elastic.co/t/q-xxxx-not-working-on-timelion-when-use-metric/69394/2 "2016-12-19T22:19:54Z")

</div>

I think you might need single quotes around your metric value e.g. `'max:events.rate_1m'`

Not sure if that's the issue though. Have you tested the same query in Discover? Query terms are analyzed, so I suspect your `ls-index#` terms are getting broken into `ls` and `index#` terms, and the `ls` is matching all docs.

---

<div class="post-metadata">

**Author:** ![Chen\_Jian](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@Chen\_Jian](https://discuss.elastic.co/u/Chen_Jian)\
**Post date:** [December 19, 2016, 11:30pm UTC](https://discuss.elastic.co/t/q-xxxx-not-working-on-timelion-when-use-metric/69394/3 "2016-12-19T23:30:39Z")

</div>

Yes, ls-index terms are broken in to **ls** and **index#** in Timelion query, but in Discover

```
message:"ls-index1"  

```

will not broken in to **ls** and **index**.

Ty

---

<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:** [January 16, 2017, 11:31pm UTC](https://discuss.elastic.co/t/q-xxxx-not-working-on-timelion-when-use-metric/69394/4 "2017-01-16T23:31:03Z")

</div>

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