Last active
July 12, 2018 06:37
-
-
Save harmy/841a93d0cf6a1a9281b094721947984c to your computer and use it in GitHub Desktop.
atom template
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
PUT _template/default | |
{ | |
"template": "*", | |
"settings": { | |
"number_of_shards": 3 , | |
"number_of_replicas": 0 | |
}, | |
"mappings": { | |
"_default_": { | |
"_all": { | |
"enabled": false | |
}, | |
"dynamic_templates": [ | |
{ | |
"notanalyzed": { | |
"mapping": { | |
"index": "not_analyzed", | |
"type": "string" | |
}, | |
"match_mapping_type": "string", | |
"match": "*" | |
} | |
}, | |
{ | |
"long_to_float": { | |
"match_mapping_type": "long", | |
"mapping": { | |
"type": "float" | |
} | |
} | |
} | |
], | |
"properties": { | |
"request": { | |
"index": "no", | |
"type": "string", | |
"doc_values": "false" | |
} | |
} | |
} | |
} | |
} |
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
{ | |
"gmp_dev": { | |
"order": 0, | |
"template": "gmp_dev-*", | |
"settings": { | |
"index": { | |
"number_of_replicas": "0" | |
} | |
}, | |
"mappings": { | |
"request": { | |
"dynamic_templates": [ | |
{ | |
"notanalyzed": { | |
"mapping": { | |
"index": "not_analyzed", | |
"type": "string" | |
}, | |
"match_mapping_type": "string", | |
"match": "*" | |
} | |
} | |
], | |
"_all": { | |
"enabled": false | |
}, | |
"properties": { | |
"request": { | |
"index": "no", | |
"type": "string", | |
"doc_values": "false" | |
} | |
} | |
} | |
}, | |
"aliases": {} | |
}, | |
"gmp": { | |
"order": 0, | |
"template": "gmp-*", | |
"settings": { | |
"index": { | |
"number_of_replicas": "0" | |
} | |
}, | |
"mappings": { | |
"request": { | |
"dynamic_templates": [ | |
{ | |
"notanalyzed": { | |
"mapping": { | |
"index": "not_analyzed", | |
"type": "string" | |
}, | |
"match_mapping_type": "string", | |
"match": "*" | |
} | |
} | |
], | |
"_all": { | |
"enabled": false | |
}, | |
"properties": { | |
"request": { | |
"index": "no", | |
"type": "string", | |
"doc_values": "false" | |
} | |
} | |
} | |
}, | |
"aliases": {} | |
}, | |
"gemini": { | |
"order": 0, | |
"template": "gemini-*", | |
"settings": { | |
"index": { | |
"number_of_replicas": "0" | |
} | |
}, | |
"mappings": { | |
"request": { | |
"dynamic_templates": [ | |
{ | |
"notanalyzed": { | |
"mapping": { | |
"index": "not_analyzed", | |
"type": "string" | |
}, | |
"match_mapping_type": "string", | |
"match": "*" | |
} | |
} | |
], | |
"_all": { | |
"enabled": false | |
}, | |
"properties": { | |
"request": { | |
"index": "no", | |
"type": "string", | |
"doc_values": "false" | |
} | |
} | |
} | |
}, | |
"aliases": {} | |
}, | |
"atomic": { | |
"order": 0, | |
"template": "atomic*", | |
"settings": { | |
"index": { | |
"number_of_replicas": "0" | |
} | |
}, | |
"mappings": { | |
"events": { | |
"dynamic_templates": [ | |
{ | |
"notanalyzed": { | |
"mapping": { | |
"index": "not_analyzed", | |
"type": "string" | |
}, | |
"match_mapping_type": "string", | |
"match": "*" | |
} | |
} | |
], | |
"_all": { | |
"enabled": false | |
}, | |
"properties": { | |
"se_value": { | |
"type": "long" | |
}, | |
"unstruct_event_aquila_cpi_conversion_1.payout": { | |
"type": "double" | |
}, | |
"unstruct_event_gemini_ad_conversion_1.payout": { | |
"type": "double" | |
} | |
} | |
} | |
}, | |
"aliases": {} | |
} | |
} |
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
PUT _template/default | |
{ | |
"template": "*", | |
"settings": { | |
"number_of_replicas": 0, | |
"refresh_interval" : "60s" | |
}, | |
"mappings": { | |
"doc": { | |
"_all": { | |
"enabled": false | |
}, | |
"properties": { | |
"message": { | |
"type": "object", | |
"properties": { | |
"request": { | |
"index": "false", | |
"type": "text", | |
"doc_values": "false" | |
}, | |
"response": { | |
"index": "false", | |
"type": "text", | |
"doc_values": "false" | |
}, | |
"request_headers": { | |
"index": "false", | |
"type": "text", | |
"doc_values": "false" | |
}, | |
"request_url": { | |
"index": "false", | |
"type": "text", | |
"doc_values": "false" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment