Skip to content

Instantly share code, notes, and snippets.

@gauravarora
Last active August 29, 2015 14:01
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 gauravarora/5e84f6c95ab83e563502 to your computer and use it in GitHub Desktop.
Save gauravarora/5e84f6c95ab83e563502 to your computer and use it in GitHub Desktop.
logstash-template
{
"logstash":
{
"order": 0,
"template": "logstash-*",
"settings":
{
"index.refresh_interval": "5s"
},
"mappings":
{
"_default_":
{
"dynamic_templates":
[
{
"string_fields":
{
"mapping":
{
"index": "not_analyzed",
"omit_norms": true,
"type": "string",
"fields":
{
"raw":
{
"index": "not_analyzed",
"ignore_above": 256,
"type": "string"
}
}
},
"match_mapping_type": "string",
"match": "*"
}
}
],
"properties":
{
"username":
{
"index": "not_analyzed",
"ignore_above": 256,
"type": "string"
},
"geoip":
{
"dynamic": true,
"path": "full",
"properties":
{
"location":
{
"type": "geo_point"
}
},
"type": "object"
},
"@version":
{
"index": "not_analyzed",
"type": "string"
},
"zone":
{
"index": "not_analyzed",
"ignore_above": 256,
"type": "string"
}
},
"_all":
{
"enabled": true
}
},
"logs":
{
"properties":
{
"username":
{
"index": "not_analyzed",
"type": "string"
},
"zone":
{
"index": "not_analyzed",
"type": "string"
}
},
"_all":
{
"enabled": false
}
}
},
"aliases":
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment