serilog-sinks-elasticsearch icon indicating copy to clipboard operation
serilog-sinks-elasticsearch copied to clipboard

Cannot set "index.max_docvalue_fields_search" to other than default in index template

Open rafszyma opened this issue 5 years ago • 0 comments
trafficstars

A few questions before you begin:

Is this an issue related to the Serilog core project or one of the sinks or community projects.
This issue list is intended for Serilog Elasticsearch Sink issues. If this issue relates to another sink or to the code project, please log on to the related repository. Please use Gitter chat and Stack Overflow for discussions and questions.

It's related to Serilog Elastic Sink

Does this issue relate to a new feature or an existing bug?

  • [X] Bug
  • [X] New Feature I'd say a bit of both, there are custom template settings but it doesn't work with this value

What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package. I'm using image

What is the target framework and operating system? See target frameworks & net standard matrix.

  • [X] netCore 3.1
  • [ ] netCore 2.0
  • [ ] netCore 1.0
  • [ ] 4.7
  • [ ] 4.6.x
  • [ ] 4.5.x

Please describe the current behavior? Right now I can't make any custom values to be applied to template. image template I get:

{ "my-logstash-template": { "order": 0, "index_patterns": [ "my-logstash-*" ], "settings": { "index": { "number_of_shards": "4", "number_of_replicas": "5", "refresh_interval": "5s" } }, "mappings": { "dynamic_templates": [ { "numerics_in_fields": { "match_pattern": "regex", "path_match": "fields\\.[\\d+]$", "mapping": { "norms": false, "index": true, "type": "text" } } }, { "string_fields": { "mapping": { "norms": false, "index": true, "type": "text", "fields": { "raw": { "ignore_above": 256, "index": true, "type": "keyword" } } }, "match_mapping_type": "string", "match": "*" } } ], "properties": { "message": { "index": true, "type": "text" }, "exceptions": { "type": "nested", "properties": { "ExceptionMessage": { "type": "object", "properties": { "MemberType": { "type": "integer" } } }, "StackTraceString": { "index": true, "type": "text" }, "HResult": { "type": "integer" }, "RemoteStackTraceString": { "index": true, "type": "text" }, "RemoteStackIndex": { "type": "integer" }, "Depth": { "type": "integer" } } } } }, "aliases": {} } }

with customer value missing.

Please describe the expected behavior?

I can add custom values to index template using configuration file, especially I'm interested in setting: "max_docvalue_fields_search": "200"

If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem

Copy my config and initialize logger:

image

rafszyma avatar Jul 24 '20 09:07 rafszyma