# Timelion filter problem

**URL:** <https://discuss.elastic.co/t/timelion-filter-problem/208063>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [November 15, 2019, 11:54am UTC](https://discuss.elastic.co/t/timelion-filter-problem/208063 "2019-11-15T11:54:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jogabonito](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogabonito/32/56737_2.png) [@jogabonito](https://discuss.elastic.co/u/jogabonito)\
**Post date:** [November 15, 2019, 11:54am UTC](https://discuss.elastic.co/t/timelion-filter-problem/208063/1 "2019-11-15T11:54:19Z")

</div>

Hi

I try to use the filter function in Timelion but I dont get any result when I include the filter function:  
q='mganavn:NNAS FOLLO'

Ex:  
.es(q='mganavn:NNAS FOLLO',index=elwin-netteier-levplikt\_antall\*,timefield=dato,metric='sum:antall').points(radius=2).label("NNAS FOLLO").color(#EE82EE)  
This does not give me a error message but doesnt show the expected value.

If I remove the filter function I get the sum of all fields, but I also want to filter by different categories of the field named "mganavn":

.es(index=elwin-netteier-levplikt\_antall\*,timefield=dato,metric='sum:antall').points(radius=2).label("NNAS FOLLO").color(#EE82EE)

I tried googled it but cannot se why I dont get a result in the graph.

The fields:  
Dato (date)  
mganavn (keyword)  
antall (long)

I want to show the antall splitted by different values of the "mganavn" field

---

<div class="post-metadata">

**Author:** ![jogabonito](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogabonito/32/56737_2.png) [@jogabonito](https://discuss.elastic.co/u/jogabonito)\
**Post date:** [November 15, 2019, 12:46pm UTC](https://discuss.elastic.co/t/timelion-filter-problem/208063/2 "2019-11-15T12:46:46Z")

</div>

The problem was that I did not use " before and after the filter name because the fieldtype is keyword (string)

This did not work:  
q='mganavn:NNAS FREDR'

This worked:  
q='mganavn:"NNAS FREDR"'

This works then:  
,.es(q='mganavn:"NNAS FREDR"',index=elwin-netteier-levplikt\_antall\*,timefield=dato,metric='sum:antall').points(radius=2).label("Leveringsplikt - NNAS FREDR").color(#DC143C)

---

<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:** [December 13, 2019, 12:46pm UTC](https://discuss.elastic.co/t/timelion-filter-problem/208063/3 "2019-12-13T12:46:52Z")

</div>

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