# Trying create index in conf.d with propeties

**URL:** <https://discuss.elastic.co/t/trying-create-index-in-conf-d-with-propeties/224092>\
**Category:** Logstash\
**Created:** [March 18, 2020, 11:32am UTC](https://discuss.elastic.co/t/trying-create-index-in-conf-d-with-propeties/224092 "2020-03-18T11:32:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcos\_Gomes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcos_gomes/32/64649_2.png) [@Marcos\_Gomes](https://discuss.elastic.co/u/Marcos_Gomes)\
**Post date:** [March 18, 2020, 11:32am UTC](https://discuss.elastic.co/t/trying-create-index-in-conf-d-with-propeties/224092/1 "2020-03-18T11:32:12Z")

</div>

I have to put the property "index.max\_docvalue\_fields\_search": "1600"

I've tried with query =\> "index.max\_docvalue\_fields\_search": "1600"

I tried to put index =\> "max\_docvalue\_fields\_search": "1600"

And also my last attempt was with a template but without success.

``  
output {

```
 elasticsearch {
     hosts => ["localhost: 9200"]
     index => "my_index"
     document_type => "doc"
     template => "/etc/logstash/templates/my_template.json"
     }

```

}  
``

Template file:

`PUT my_index { "index.max_docvalue_fields_search": "1600" }`

In the last case I get the error:

`ERROR logstash.outputs.elasticsearch - Failed to install template. {:message=>"Unrecognized token 'PUT': was expecting ('true', 'false' or 'null')`  
Can anyone help me?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 18, 2020, 2:55pm UTC](https://discuss.elastic.co/t/trying-create-index-in-conf-d-with-propeties/224092/2 "2020-03-18T14:55:23Z")

</div>

The template should only contain JSON, the file you provided is not valid JSON with that dev tools syntax at the beginning.

---

<div class="post-metadata">

**Author:** ![Marcos\_Gomes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcos_gomes/32/64649_2.png) [@Marcos\_Gomes](https://discuss.elastic.co/u/Marcos_Gomes)\
**Post date:** [March 19, 2020, 2:43pm UTC](https://discuss.elastic.co/t/trying-create-index-in-conf-d-with-propeties/224092/3 "2020-03-19T14:43:54Z")

</div>

I received a return now that the index has been successfully created, but when I check the kibana this set property does not appear, is it really?

`14:09:06.229 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://mycluster.local:9200/]}}`  
`14:09:06.238 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://mycluster.local:9200/, :path=>"/"}`  
`14:09:06.386 [[main]-pipeline-manager] WARN logstash.outputs.elasticsearch - Restored connection to ES instance {:url=>#<URI::HTTP:0x4126c5e3 URL:http://mycluster.local:9200/>}`  
`14:09:06.389 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Using mapping template from {:path=>"/etc/logstash/templates/mytemplate.json"}`  
`14:09:06.609 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Attempting to install template {:manage_template=>{"index.max_docvalue_fields_search"=>"1600"}}`  
`14:09:06.614 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>[#<URI::Generic:0x55ecea4a URL://mycluster.local:9200>]}`  
`14:09:06.688 [[main]-pipeline-manager] INFO logstash.filters.geoip - Using geoip database {:path=>"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-geoip-4.1.1-java/vendor/GeoLite2-City.mmdb"}`  
`14:09:06.722 [[main]-pipeline-manager] INFO logstash.pipeline - Starting pipeline {"id"=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>1000}`  
`14:09:06.745 [[main]-pipeline-manager] INFO logstash.pipeline - Pipeline main started`  
`14:09:06.874 [Api Webserver] INFO logstash.agent - Successfully started Logstash API endpoint {:port=>9645}`

This option that I'm setting should appear here, right?

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/0/208e5aee3ad462eff4c8cd4f6803d1141eae6d0c.png)

---

<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:** [April 16, 2020, 2:44pm UTC](https://discuss.elastic.co/t/trying-create-index-in-conf-d-with-propeties/224092/4 "2020-04-16T14:44:05Z")

</div>

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