# Applied base filter to timelion

**URL:** https://discuss.elastic.co/t/applied-base-filter-to-timelion/168886
**Category:** Kibana
**Tags:** timelion
**Created:** [February 18, 2019, 6:27pm UTC](https://discuss.elastic.co/t/applied-base-filter-to-timelion/168886 "2019-02-18T18:27:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Shay\_Tsadok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shay_tsadok/32/6444_2.png) [@Shay\_Tsadok](https://discuss.elastic.co/u/Shay_Tsadok)
#### Post date: [February 18, 2019, 6:27pm UTC](https://discuss.elastic.co/t/applied-base-filter-to-timelion/168886/1 "2019-02-18T18:27:44Z")

</div>

So in timelion you can do something like this: `.es('user="bob"').divide(.es())`

I would like to apply a base filter, is there a way to do it without duplicating the filter like this: `.es('user="bob" AND type="singer"').divide(.es(type="singer"))`

Thanks

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [February 18, 2019, 6:36pm UTC](https://discuss.elastic.co/t/applied-base-filter-to-timelion/168886/2 "2019-02-18T18:36:26Z")

</div>

Hello,

I don't think this is working or expected to work now. I am tagging @lukeelmers see if my assumption is wrong.

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)
#### Post date: [February 19, 2019, 5:40pm UTC](https://discuss.elastic.co/t/applied-base-filter-to-timelion/168886/3 "2019-02-19T17:40:03Z")

</div>

Hi @Shay_Tsadok,

It sounds like what you are looking for is the concept of variables in timelion which, unfortunately, is not formally implemented today. Timelion does have the concept of variables under the hood, but it is not feature complete or stable, and thus could change at any time.

You can find a bit more context on this in the discussion on [the original issue](https://github.com/elastic/timelion/issues/87), or follow along with [the issue containing current feature request](https://github.com/elastic/kibana/issues/15545).

Outside of variables, there's no way I'm aware of to avoid this type of duplication.

Hope this helps a bit!

Luke

---

<div class="post-metadata">

### Author: ![Shay\_Tsadok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shay_tsadok/32/6444_2.png) [@Shay\_Tsadok](https://discuss.elastic.co/u/Shay_Tsadok)
#### Post date: [February 20, 2019, 8:16am UTC](https://discuss.elastic.co/t/applied-base-filter-to-timelion/168886/4 "2019-02-20T08:16:43Z")

</div>

Thanks Luke for the clarification.

---

<div class="post-metadata">

### Author: ![Shay\_Tsadok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shay_tsadok/32/6444_2.png) [@Shay\_Tsadok](https://discuss.elastic.co/u/Shay_Tsadok)
#### Post date: [February 20, 2019, 8:47am UTC](https://discuss.elastic.co/t/applied-base-filter-to-timelion/168886/5 "2019-02-20T08:47:54Z")

</div>

I had that question opened before in Stackoverflow, here is the link: [https://stackoverflow.com/questions/54752898/applied-base-filter-to-timelion/54782155#54782155](https://stackoverflow.com/questions/54752898/applied-base-filter-to-timelion/54782155#54782155)

---

<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: [March 20, 2019, 8:47am UTC](https://discuss.elastic.co/t/applied-base-filter-to-timelion/168886/6 "2019-03-20T08:47:58Z")

</div>

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