Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template not loading in 1.2.3 using documented config #2420

Closed
andrewkroh opened this issue Aug 30, 2016 · 1 comment
Closed

Template not loading in 1.2.3 using documented config #2420

andrewkroh opened this issue Aug 30, 2016 · 1 comment
Assignees

Comments

@andrewkroh
Copy link
Member

The documentation recommends:

output:
  elasticsearch:
    hosts: ["localhost:9200"]

    # A template is used to set the mapping in Elasticsearch
    # By default template loading is disabled and no template is loaded.
    # These settings can be adjusted to load your own template or overwrite existing ones
    template:

      # Template name. By default the template name is topbeat.
      #name: "topbeat"

      # Path to template file
      path: "topbeat.template.json"

      # Overwrite existing template
      #overwrite: false

But you must uncomment name: topbeat to enable loading because the code checks that name is not empty.

output:
  elasticsearch:
    hosts: ["localhost:9200"]

    # A template is used to set the mapping in Elasticsearch
    # By default template loading is disabled and no template is loaded.
    # These settings can be adjusted to load your own template or overwrite existing ones
    template:

      # Template name. By default the template name is topbeat.
      name: "topbeat"

      # Path to template file
      path: "topbeat.template.json"

      # Overwrite existing template
      #overwrite: false

The comment "By default the template name is topbeat" is wrong since the default value is actually an empty string.

@andrewkroh
Copy link
Member Author

For seems be working as expected now (looks like it was resolved by #1993).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants