Skip to content

Instantly share code, notes, and snippets.

@harmy
Last active July 12, 2018 06:37
Show Gist options
  • Save harmy/841a93d0cf6a1a9281b094721947984c to your computer and use it in GitHub Desktop.
Save harmy/841a93d0cf6a1a9281b094721947984c to your computer and use it in GitHub Desktop.
atom template
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"
}
}
}
}
}
{
"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": {}
}
}
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