# Logstash - Elastic search term aggregation doesn't work with string "-"

**URL:** <https://discuss.elastic.co/t/logstash-elastic-search-term-aggregation-doesnt-work-with-string/29749>\
**Category:** Logstash\
**Created:** [September 22, 2015, 6:24am UTC](https://discuss.elastic.co/t/logstash-elastic-search-term-aggregation-doesnt-work-with-string/29749 "2015-09-22T06:24:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nav](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@nav](https://discuss.elastic.co/u/nav)\
**Post date:** [September 22, 2015, 6:24am UTC](https://discuss.elastic.co/t/logstash-elastic-search-term-aggregation-doesnt-work-with-string/29749/1 "2015-09-22T06:24:27Z")

</div>

I am sending http access log to my logstash server, each log has a "path" field which means the URL path after removing hostname. Therefore, "path" can be any string. When it is empty, its value is set to "-".  
However, using term aggregation, I can only see non empty paths, logs with "path": "-" doesn't appear in the aggregation result. What could be the reason for this? I am still new to ES.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 22, 2015, 7:36am UTC](https://discuss.elastic.co/t/logstash-elastic-search-term-aggregation-doesnt-work-with-string/29749/2 "2015-09-22T07:36:12Z")

</div>

Is the value actually `-` or is it null?  
Can you post an example document?

---

<div class="post-metadata">

**Author:** ![nav](https://avatars.discourse-cdn.com/v4/letter/n/6a8cbe/32.png) [@nav](https://discuss.elastic.co/u/nav)\
**Post date:** [September 22, 2015, 7:52am UTC](https://discuss.elastic.co/t/logstash-elastic-search-term-aggregation-doesnt-work-with-string/29749/3 "2015-09-22T07:52:28Z")

</div>

@warkolm: the value is exactly "-" as seen in the document returned from elasticsearch  
I just found this, It probably has something to do with delimiter: [https://www.elastic.co/guide/en/elasticsearch/reference/2.0/analysis-word-delimiter-tokenfilter.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/analysis-word-delimiter-tokenfilter.html)  
I'll try to disable them and report here later.

---

<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:** [July 6, 2017, 5:28am UTC](https://discuss.elastic.co/t/logstash-elastic-search-term-aggregation-doesnt-work-with-string/29749/4 "2017-07-06T05:28:27Z")

</div>

Closed on July 6, 2017, 5:28am UTC


