Skip to content

Instantly share code, notes, and snippets.

@rishiloyola
Last active December 3, 2018 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rishiloyola/227b7a3c4e879bac59eaed92e39b61a1 to your computer and use it in GitHub Desktop.
Save rishiloyola/227b7a3c4e879bac59eaed92e39b61a1 to your computer and use it in GitHub Desktop.
Filebeat template for Elasticsearch version 6
{
"mappings": {
"_default_": {
"dynamic_templates": [
{
"template1": {
"mapping": {
"ignore_above": 1024,
"index": "true",
"type": "{dynamic_type}"
},
"match": "*"
}
}
],
"properties": {
"@timestamp": {
"type": "date"
},
"message": {
"type": "text",
"index": "true"
},
"offset": {
"type": "long",
"doc_values": "true"
},
"geoip": {
"type": "object",
"dynamic": true,
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
}
},
"settings": {
"index.refresh_interval": "5s"
},
"template": "filebeat-*"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment