Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PUT _template/logstash
- {
- "logstash": {
- "order": 0,
- "version": 50001,
- "index_patterns": [
- "logstash-*"
- ],
- "settings": {
- "index": {
- "refresh_interval": "5s"
- }
- },
- "mappings": {
- "_default_": {
- "_all": {
- "enabled": true,
- "norms": false
- },
- "dynamic_templates": [
- {
- "message_field": {
- "path_match": "message",
- "match_mapping_type": "string",
- "mapping": {
- "type": "text",
- "norms": false
- }
- }
- },
- {
- "string_fields": {
- "match": "*",
- "match_mapping_type": "string",
- "mapping": {
- "type": "text",
- "norms": false,
- "fields": {
- "keyword": {
- "type": "keyword"
- }
- }
- }
- }
- }
- ],
- "properties": {
- "@timestamp": {
- "type": "date",
- "include_in_all": false
- },
- "@version": {
- "type": "keyword",
- "include_in_all": false
- },
- "geoip": {
- "dynamic": true,
- "properties": {
- "ip": {
- "type": "ip"
- },
- "location": {
- "type": "geo_point"
- },
- "latitude": {
- "type": "half_float"
- },
- "longitude": {
- "type": "half_float"
- }
- }
- }
- }
- }
- },
- "aliases": {}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement