Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

ES6 template syntax #206

Closed
2 of 7 tasks
CaringDev opened this issue Dec 27, 2018 · 0 comments · Fixed by #207
Closed
2 of 7 tasks

ES6 template syntax #206

CaringDev opened this issue Dec 27, 2018 · 0 comments · Fixed by #207

Comments

@CaringDev
Copy link
Contributor

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

  • Bug
  • New Feature

What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package.
6.5.0

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

  • netCore 2.0
  • netCore 1.0
  • 4.7
  • 4.6.x
  • 4.5.x

Please describe the current behavior?
Index Template for v6 uses old "template" field for index matching.

Please describe the expected behavior?
ES Sink uses the new "index_patterns" field when generating a template.

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

    // ...
    AutoRegisterTemplate = true,
    AutoRegisterTemplateVersion = AutoRegisterTemplateVersion.ESv6,
    // ...

the sink tries to post a template according to template_v6.json leading to an error:

{
  "error": {
    "root_cause": [
      {
        "type": "action_request_validation_exception",
        "reason": "Validation Failed: 1: index patterns are missing;"
      }
    ],
    "type": "action_request_validation_exception",
    "reason": "Validation Failed: 1: index patterns are missing;"
  },
  "status": 400
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant