Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"unifisyslog" : {
"order" : 0,
"index_patterns" : [
"unifisyslog-*"
],
"settings" : {
"index" : {
"number_of_shards" : "1",
"number_of_replicas" : "1"
}
},
"mappings" : {
"doc" : {
"properties" : {
"ubiquiti.switch" : {
"type" : "object"
},
"source.geo" : {
"dynamic" : true,
"properties" : {
"ip" : {
"type" : "ip"
},
"location" : {
"type" : "geo_point"
},
"latitude" : {
"type" : "half_float"
},
"longitude" : {
"type" : "half_float"
}
}
},
"destination.geo" : {
"dynamic" : true,
"properties" : {
"ip" : {
"type" : "ip"
},
"location" : {
"type" : "geo_point"
},
"latitude" : {
"type" : "half_float"
},
"longitude" : {
"type" : "half_float"
}
}
},
"source.ip" : {
"type" : "ip"
},
"destination.ip" : {
"type" : "ip"
}
}
}
},
"aliases" : { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment