# Searching Logs for tags with "@" Symbol

**URL:** <https://discuss.elastic.co/t/searching-logs-for-tags-with-symbol/65177>\
**Category:** Elasticsearch\
**Created:** [November 7, 2016, 7:16am UTC](https://discuss.elastic.co/t/searching-logs-for-tags-with-symbol/65177 "2016-11-07T07:16:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![suaveh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suaveh/32/12071_2.png) [@suaveh](https://discuss.elastic.co/u/suaveh)\
**Post date:** [November 7, 2016, 7:16am UTC](https://discuss.elastic.co/t/searching-logs-for-tags-with-symbol/65177/1 "2016-11-07T07:16:40Z")

</div>

Good day,

I am trying to search for a string that starts with the "@" symbol, but it seems that the symbol is ignored.

For example... I have the following documents with the following data:

doc1: "hello world"  
doc2: "@hello world"

I want to search for "@hello", expecting only doc2 to be returned. But right now, it returns both documents, as if I searched for "hello" only.

Is there a way I can search with the "@" symbol?

Thanks,  
Eugene

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 7, 2016, 7:49am UTC](https://discuss.elastic.co/t/searching-logs-for-tags-with-symbol/65177/2 "2016-11-07T07:49:37Z")

</div>

You need to change the analyzer.  
The standard analyzer is indeed removing symbols like @, . ...

---

<div class="post-metadata">

**Author:** ![suaveh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suaveh/32/12071_2.png) [@suaveh](https://discuss.elastic.co/u/suaveh)\
**Post date:** [November 7, 2016, 8:01am UTC](https://discuss.elastic.co/t/searching-logs-for-tags-with-symbol/65177/3 "2016-11-07T08:01:12Z")

</div>

Thanks @dadoonet. I tried using the whitespace analyzer, and I am able to search with the "@" symbol now.

---

<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 5, 2016, 8:01am UTC](https://discuss.elastic.co/t/searching-logs-for-tags-with-symbol/65177/4 "2016-12-05T08:01:32Z")

</div>

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