Skip to content

Instantly share code, notes, and snippets.

@jidckii
Last active August 10, 2021 12:40
Show Gist options
  • Save jidckii/ba7352c91ca46fc0f0e38dd201676fb6 to your computer and use it in GitHub Desktop.
Save jidckii/ba7352c91ca46fc0f0e38dd201676fb6 to your computer and use it in GitHub Desktop.
Setup Custom Graylog Mappings

Fix problem graylog failed to parse field level of type long

cat << EOF > graylog-custom-mapping.json
{
  "template": "graylog_*",
  "mappings" : {
    "properties" : {
      "level" : {
        "type" : "keyword"
      }
    }
  }
}
EOF
curl -X PUT -d @graylog-custom-mapping.json 'http://localhost:9200/_template/graylog-custom-mapping?pretty' -H 'Content-Type: application/json'

https://community.graylog.org/t/custom-mapping-not-applied-to-indices/12854

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