Last active
December 23, 2015 17:49
-
-
Save saez0pub/6671828 to your computer and use it in GitHub Desktop.
Elasticsearch Template for new schema of logstash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"template" : "logstash-*", | |
"settings" : { | |
"index.default_field" : "message", | |
"index.number_of_replicas" : "0", | |
"index.number_of_shards" : "1" | |
}, | |
"mappings" : { | |
"_default_" : { | |
"dynamic_templates" : [ { | |
"string_template" : { | |
"mapping" : { | |
"index" : "not_analyzed", | |
"type" : "string" | |
}, | |
"match" : "*", | |
"match_mapping_type" : "string" | |
} | |
} ], | |
"properties" : { | |
"@message" : { | |
"index" : "analyzed", | |
"type" : "string" | |
}, | |
"bytes" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"time_request" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"time_queue" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"time_backend_connect" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"time_backend_response" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"time_duration" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"bytes" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"bytes_read" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"actconn" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"feconn" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"beconn" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"beconn" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"srvconn" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"retries" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"srv_queue" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
}, | |
"backend_queue" : { | |
"index" : "not_analyzed", | |
"type" : "long" | |
} | |
} | |
} | |
} | |
} |
haproxy and apache mapping
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d @etc/mapping.json