# Keyword fields, Graylog and ElastAlert

**URL:** <https://discuss.elastic.co/t/keyword-fields-graylog-and-elastalert/165877>\
**Category:** Elasticsearch\
**Created:** [January 27, 2019, 4:10am UTC](https://discuss.elastic.co/t/keyword-fields-graylog-and-elastalert/165877 "2019-01-27T04:10:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![shortstack](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shortstack/32/100341_2.png) [@shortstack](https://discuss.elastic.co/u/shortstack)\
**Post date:** [February 1, 2019, 2:58pm UTC](https://discuss.elastic.co/t/keyword-fields-graylog-and-elastalert/165877/5 "2019-02-01T14:58:19Z")

</div>

that's what i thought, too

have done this GET on all new indices created, and see the parameter being mapped as keyword

GET index-name/\_mapping?pretty

however, i perform the search in graylog:

```auto
_exists_:param_name AND _index:index-name

```

i try to show quick values on the param\_name field, i get the 500 complaining about it being a text field

```auto
{
  "index-name": {
    "mappings": {
      "message": {
        "dynamic_templates": [
          {
            "internal_fields": {
              "match": "gl2_*",
              "mapping": {
                "type": "keyword"
              }
            }
          },
          {
            "store_generic": {
              "match_mapping_type": "string",
              "mapping": {
                "type": "keyword"
              }
            }
          }
        ],
        "properties": {
          "BASE10NUM": {
            "type": "keyword"
          },
          "GREEDYDATA": {
            "type": "keyword"
          },
          "HOSTNAME": {
            "type": "keyword"
          },
          "IPORHOST": {
            "type": "keyword"
          },
          "MONTHDAY": {
            "type": "keyword"
          },
          "MONTHNUM": {
            "type": "keyword"
          },
          "NUMBER": {
            "type": "keyword"
          },
          "POSINT": {
            "type": "keyword"
          },

          ....
          
          "param_name": {
            "type": "keyword"
          },

          ....

          
        }
      }
    }
  }
}

```

---

_[View the full topic](https://discuss.elastic.co/t/keyword-fields-graylog-and-elastalert/165877)._
