Skip to content

Instantly share code, notes, and snippets.

@jasonish
Created June 28, 2017 22:41
Show Gist options
  • Save jasonish/e64ab8af6d5a220db8dbabcd754f3ead to your computer and use it in GitHub Desktop.
Save jasonish/e64ab8af6d5a220db8dbabcd754f3ead to your computer and use it in GitHub Desktop.
{
"template" : "logstash-*",
"version" : 1,
"settings" : {
"number_of_replicas": 0,
"index.refresh_interval" : "5s"
},
"mappings" : {
"_default_" : {
"dynamic_templates" : [
{
"message_field" : {
"mapping" : {
"fielddata" : {
"format" : "disabled"
},
"index" : "analyzed",
"omit_norms" : true,
"type" : "string"
},
"match_mapping_type" : "string",
"match" : "message"
}
},
{
"string_fields" : {
"mapping" : {
"fielddata" : {
"format" : "disabled"
},
"index" : "analyzed",
"omit_norms" : true,
"type" : "string",
"fields" : {
"raw" : {
"ignore_above" : 256,
"index" : "not_analyzed",
"type" : "keyword"
}
}
},
"match_mapping_type" : "string",
"match" : "*"
}
}
],
"_all" : {
"omit_norms" : true,
"enabled" : true
},
"properties" : {
"@timestamp" : {
"type" : "date"
},
"geoip" : {
"dynamic" : true,
"properties" : {
"ip" : {
"type" : "ip"
},
"latitude" : {
"type" : "float"
},
"location" : {
"type" : "geo_point"
},
"longitude" : {
"type" : "float"
}
}
},
"src_ip": {
"type": "ip",
"fields": {
"raw": {"index": "not_analyzed", "type": "keyword"}
}
},
"dest_ip": {
"type": "ip",
"fields": {
"raw": {"index": "not_analyzed", "type": "keyword"}
}
},
"@version" : {
"index" : "not_analyzed",
"type" : "string"
}
}
}
},
"aliases" : { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment