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

graylog index template not using configured index prefix #2089

Closed
kroepke opened this issue Apr 15, 2016 · 1 comment
Closed

graylog index template not using configured index prefix #2089

kroepke opened this issue Apr 15, 2016 · 1 comment
Assignees
Milestone

Comments

@kroepke
Copy link
Member

@kroepke kroepke commented Apr 15, 2016

Problem description

Version 2.0-beta.3 does not take the configured index prefix into account.

Steps to reproduce the problem

  1. configure server.conf to use graylog_ as index prefix
  2. start graylog
  3. newly created index name is graylog_0 (correct)
  4. index template graylog-internal is using graylog2_* as template pattern:
{
  "order": -2147483648,
  "template": "graylog2_*",
  "settings": {},
  "mappings": {
    "message": {
      "_ttl": {
        "enabled": true
      },
      "_source": {
        "compress": true,
        "enabled": true
      },
      "dynamic_templates": [
        {
          "internal_fields": {
            "mapping": {
              "index": "not_analyzed",
              "doc_values": true
            },
            "match": "gl2_*"
          }
        },
        {
          "store_generic": {
            "mapping": {
              "index": "not_analyzed"
            },
            "match": "*"
          }
        }
      ],
      "properties": {
        "full_message": {
          "analyzer": "standard",
          "index": "analyzed",
          "type": "string"
        },
        "source": {
          "analyzer": "analyzer_keyword",
          "index": "analyzed",
          "type": "string"
        },
        "message": {
          "analyzer": "standard",
          "index": "analyzed",
          "type": "string"
        },
        "timestamp": {
          "format": "yyyy-MM-dd HH:mm:ss.SSS",
          "type": "date",
          "doc_values": true
        }
      }
    }
  },
  "aliases": {}
}

Environment

  • Graylog Version: 2.0.0-beta.3
  • Elasticsearch Version: 2.3.1
  • MongoDB Version: any
  • Operating System: any
  • Browser version: any
@kroepke kroepke added the bug label Apr 15, 2016
@kroepke kroepke added this to the 2.0.0 milestone Apr 15, 2016
@joschi joschi self-assigned this Apr 15, 2016
@kroepke
Copy link
Member Author

@kroepke kroepke commented Apr 18, 2016

This can happen when the index template is created from a snapshot restore.

@kroepke kroepke added elasticsearch improvement and removed bug labels Apr 18, 2016
joschi pushed a commit that referenced this issue Apr 18, 2016
kroepke added a commit that referenced this issue Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants