ElasticSearch output plugin create index with analyzers

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"	
						}
         }
      }
   }
}

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