Skip to content

Instantly share code, notes, and snippets.

@radu-gheorghe
Last active December 13, 2015 22:39
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 radu-gheorghe/4985795 to your computer and use it in GitHub Desktop.
Save radu-gheorghe/4985795 to your computer and use it in GitHub Desktop.
{
"template_1" : {
"template" : "*",
"access-log" : {
"properties" : {
"@fields": {
"dynamic": "true",
"properties": {
"accessdate" : {
"index" : "not_analyzed",
"type" : "date",
"format" : "dd/MMM/yyyy:HH:mm:ss Z"
},
"ZONE": {
"type": "string"
}
}
}
}
}
}
}
{
"query":{
"bool":{
"must":[
{
"range":{
"@fields.accessdate":{
"from":"12/Sep/2012:11:24:00 +0200",
"to":"12/Sep/2012:11:24:05 +0200"
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment