Skip to content

Instantly share code, notes, and snippets.

@momota10s
Created April 17, 2017 09:09
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 momota10s/3c2c089d578d9b61b491a818d3918e99 to your computer and use it in GitHub Desktop.
Save momota10s/3c2c089d578d9b61b491a818d3918e99 to your computer and use it in GitHub Desktop.
{
"template": "elb_access_log*",
"mappings" : {
"elb_access_log" : {
"properties" : {
"backend" : {
"type" : "ip"
},
"backend_port" : {
"type" : "integer",
"index" : "not_analyzed"
},
"backend_processing_time" : {
"type" : "double"
},
"backend_status_code" : {
"type" : "integer",
"index" : "not_analyzed"
},
"client" : {
"type" : "ip"
},
"client_port" : {
"type" : "integer"
},
"elb" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"elb_status_code" : {
"type" : "integer"
},
"received_bytes" : {
"type" : "integer"
},
"request" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"request_http_version" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"request_method" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"request_processing_time" : {
"type" : "double"
},
"request_uri" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"request_uri_host" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"request_uri_path" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"request_uri_port" : {
"type" : "integer",
"index" : "not_analyzed"
},
"request_uri_query" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"request_uri_scheme" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"response_processing_time" : {
"type" : "double"
},
"sent_bytes" : {
"type" : "integer"
},
"ssl_cipher" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"ssl_protocol" : {
"type" : "text",
"index" : "not_analyzed",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"@timestamp" : {
"type" : "date"
},
"user_agent" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment