# ElasticSearch output plugin create index with analyzers

**URL:** <https://discuss.elastic.co/t/elasticsearch-output-plugin-create-index-with-analyzers/183748>\
**Category:** Logstash\
**Created:** [May 31, 2019, 2:42pm UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin-create-index-with-analyzers/183748 "2019-05-31T14:42:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samantha\_Molina\_Sier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samantha_molina_sier/32/43574_2.png) [@Samantha\_Molina\_Sier](https://discuss.elastic.co/u/Samantha_Molina_Sier)\
**Post date:** [May 31, 2019, 2:42pm UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin-create-index-with-analyzers/183748/1 "2019-05-31T14:42:05Z")

</div>

Hi all,

I am working with ElasticSearch and Logstash 6.5, and creating an ES index. I would like to know if it possible to create the index with specific analyzer configuration.

Thank you!

```
This is the output configuration:
        output {
          elasticsearch {
        	action => "update"
        	doc_as_upsert => true
        	document_id => "%{doc_id}"
            index => "entity"
          }
        }

And this is my analyzer configuration: 
{
   "settings":{
      "analysis":{
         "analyzer":{
            "my_analyzer":{ 
               "type":"custom",
               "tokenizer":"standard",
               "filter": [
                  "word_delimiter", "lowercase", "asciifolding", "stop_list"
               ],
							 "char_filter": [
								 "punctuation_filter"
							 ]
            }
         },
				 "char_filter": {
					"punctuation_filter": {
						"type": "mapping",
						"mappings": [
							"٠ => ",
							", => ",
							"/ => "
						]
					}
				 },
         "filter":{
            "stop_list":{
               "type":"stop",
               "stopwords": [
                                    "&",
                                    "co",
                                    "co.",
                                    "funding"]
            }
         }
      }
   },
   "mappings":{
       "doc":{
          "properties": {
						"entity_proper_name": {
							"type":"text",
							"analyzer":"my_analyzer"	
						},
						"factset_legal_name": {
							"type":"text",
							"analyzer":"my_analyzer"	
						}
         }
      }
   }
}
```

---

<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:** [June 28, 2019, 2:53pm UTC](https://discuss.elastic.co/t/elasticsearch-output-plugin-create-index-with-analyzers/183748/2 "2019-06-28T14:53:39Z")

</div>

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