Last active
December 3, 2018 04:36
-
-
Save rishiloyola/227b7a3c4e879bac59eaed92e39b61a1 to your computer and use it in GitHub Desktop.
Filebeat template for Elasticsearch version 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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