Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The settings.index.mapping settings from the index template are not always being applied on index creation #30486

Closed
alaphoid opened this issue May 9, 2018 · 7 comments
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team

Comments

@alaphoid
Copy link

alaphoid commented May 9, 2018

I am currently running the ELK stack ver 6.2.2 with x-pack on CentOS 7.x and I have been randomly seeing this issue on the three clusters I run that need a greater than 1000 total_fields.limit value. Most days the index gets created with our set limit of 3000 and randomly it does not. We created a monitor watching the Logstash logs for errors about the 1000 field limit. Here is an example from this morning:

This instance was alerting this morning so I checked the current days index settings:
$ curl -XGET 127.0.0.1:9200/logstash-2018.05.09/_settings
{
"logstash-2018.05.09": {
"settings": {
"index": {
"routing": {
"allocation": {
"require": {
"tag": "fast"
}
}
},
"refresh_interval": "5s",
"number_of_shards": "6",
"provided_name": "logstash-2018.05.09",
"merge": {
"scheduler": {
"max_thread_count": "1"
}
},
"creation_date": "1516324816144",
"number_of_replicas": "1",
"uuid": "pmMZplQtQYKA5YtiqRMwXA",
"version": {
"created": "5060399",
"upgraded": "6020299"
}
}
}
}
}

No setting for the increased filed limit are present, so I manually updated the limit on this index:

$ curl -XPUT 127.0.0.1:9200/logstash-2018.05.09/_settings -H'Content-Type: application/json' -d '{"index.mapping.total_fields.limit": 3000}'

And checked again to verify:

$ curl -XGET 127.0.0.1:9200/logstash-2018.05.09/_settings
{
"logstash-2018.05.09": {
"settings": {
"index": {
"routing": {
"allocation": {
"require": {
"tag": "fast"
}
}
},
"mapping": {
"total_fields": {
"limit": "3000"
}
},
"refresh_interval": "5s",
"number_of_shards": "6",
"provided_name": "logstash-2018.05.09",
"merge": {
"scheduler": {
"max_thread_count": "1"
}
},
"creation_date": "1516324816144",
"number_of_replicas": "1",
"uuid": "pmMZplQtQYKA5YtiqRMwXA",
"version": {
"created": "5060399",
"upgraded": "6020299"
}
}
}
}
}

Field limit settings are now present.

Here is the index template in use:
$ curl -XGET 127.0.0.1:9200/_template/logstash
{"logstash":{"order":0,"index_patterns":["logstash-"],"settings":{"index":{"routing":{"allocation":{"require":{"tag":"fast"}}},"mapping":{"total_fields":{"limit":"3000"}},"refresh_interval":"5s","number_of_shards":"6","number_of_replicas":"1","merge":{"scheduler":{"max_thread_count":"1"}}}},"mappings":{"default":{"dynamic_templates":[{"message_field":{"mapping":{"index":true,"norms":false,"type":"text"},"match_mapping_type":"string","match":"message"}},{"string_fields":{"mapping":{"index":true,"norms":false,"type":"text","fields":{"raw":{"ignore_above":256,"index":true,"type":"keyword","doc_values":true}}},"match_mapping_type":"string","match":""}},{"float_fields":{"mapping":{"type":"float","doc_values":true},"match_mapping_type":"double","match":""}},{"date_fields":{"mapping":{"type":"date","doc_values":true},"match_mapping_type":"date","match":""}},{"geo_point_fields":{"mapping":{"type":"geo_point","doc_values":true},"match_mapping_type":"string","match":"*"}}],"properties":{"@timestamp":{"type":"date","doc_values":true},"geoip":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}},"level":{"type":"text"},"alert_occurrences":{"type":"integer"},"@Version":{"index":true,"type":"keyword","doc_values":true},"response_time":{"type":"integer"},"ResponseTime":{"type":"float"},"Win32Status":{"type":"integer"},"event":{"type":"object","properties":{"timestamp":{"type":"date"}}},"facility":{"type":"text"},"HTTPStatus":{"type":"integer"},"response_size":{"type":"integer"},"delay_sec":{"type":"integer"},"xdelay_sec":{"type":"integer"},"SourceGeo":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}},"DestinationGeo":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}},"lobos_request":{"type":"object","properties":{"queryParams":{"type":"object","properties":{"datetime":{"type":"text"},"endDate":{"type":"text"},"start":{"type":"text"},"startDate":{"type":"text"}}}}}}}},"aliases":{}}}

I left the JSON compressed to not make this issue description extra long. But you can see the setting applied includes the field setting, and most days it gets set properly. Roughly every third day one of the three clusters with the increased field limit setting for some reason does not get it applied to the new index, but all the other settings in the index template are present.

@jpountz jpountz added >bug :Data Management/Indices APIs APIs to create and manage indices and templates labels May 9, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@jpountz
Copy link
Contributor

jpountz commented May 9, 2018

Do I get it right that the total field limit setting doesn't get applied, but that other settings DO get applied? I'm also wondering whether you have several templates that match your index names, or only the logstash one?

@alaphoid
Copy link
Author

alaphoid commented May 9, 2018

Correct, the rest of the settings in the index template are applied successfully, and most days the field limit is as well. I did output all the index templates and go through them, this is the only one that applies to logstash-*

@alaphoid
Copy link
Author

alaphoid commented May 9, 2018

Here is all the templates that exist on this setup:

$ curl -XGET 127.0.0.1:9200/template
{".monitoring-logstash":{"order":0,"version":6020099,"index_patterns":[".monitoring-logstash-6-"],"settings":{"index":{"format":"6","codec":"best_compression","number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}},"mappings":{"doc":{"dynamic":false,"properties":{"cluster_uuid":{"type":"keyword"},"timestamp":{"type":"date","format":"date_time"},"interval_ms":{"type":"long"},"type":{"type":"keyword"},"source_node":{"properties":{"uuid":{"type":"keyword"},"host":{"type":"keyword"},"transport_address":{"type":"keyword"},"ip":{"type":"keyword"},"name":{"type":"keyword"},"timestamp":{"type":"date","format":"date_time"}}},"logstash_stats":{"type":"object","properties":{"logstash":{"properties":{"uuid":{"type":"keyword"},"name":{"type":"keyword"},"ephemeral_id":{"type":"keyword"},"host":{"type":"keyword"},"http_address":{"type":"keyword"},"version":{"type":"keyword"},"snapshot":{"type":"boolean"},"status":{"type":"keyword"},"pipeline":{"properties":{"workers":{"type":"short"},"batch_size":{"type":"long"}}}}},"events":{"properties":{"filtered":{"type":"long"},"in":{"type":"long"},"out":{"type":"long"},"duration_in_millis":{"type":"long"}}},"timestamp":{"type":"date"},"jvm":{"properties":{"uptime_in_millis":{"type":"long"},"gc":{"properties":{"collectors":{"properties":{"old":{"properties":{"collection_count":{"type":"long"},"collection_time_in_millis":{"type":"long"}}},"young":{"properties":{"collection_count":{"type":"long"},"collection_time_in_millis":{"type":"long"}}}}}}},"mem":{"properties":{"heap_max_in_bytes":{"type":"long"},"heap_used_in_bytes":{"type":"long"},"heap_used_percent":{"type":"long"}}}}},"os":{"properties":{"cpu":{"properties":{"load_average":{"properties":{"1m":{"type":"half_float"},"5m":{"type":"half_float"},"15m":{"type":"half_float"}}}}},"cgroup":{"properties":{"cpuacct":{"properties":{"control_group":{"type":"keyword"},"usage_nanos":{"type":"long"}}},"cpu":{"properties":{"control_group":{"type":"keyword"},"stat":{"properties":{"number_of_elapsed_periods":{"type":"long"},"number_of_times_throttled":{"type":"long"},"time_throttled_nanos":{"type":"long"}}}}}}}}},"process":{"properties":{"cpu":{"properties":{"percent":{"type":"long"}}},"max_file_descriptors":{"type":"long"},"open_file_descriptors":{"type":"long"}}},"reloads":{"properties":{"failures":{"type":"long"},"successes":{"type":"long"}}},"queue":{"properties":{"events_count":{"type":"long"},"type":{"type":"keyword"}}},"pipelines":{"type":"nested","properties":{"id":{"type":"keyword"},"hash":{"type":"keyword"},"ephemeral_id":{"type":"keyword"},"events":{"properties":{"in":{"type":"long"},"filtered":{"type":"long"},"out":{"type":"long"},"duration_in_millis":{"type":"long"},"queue_push_duration_in_millis":{"type":"long"}}},"queue":{"properties":{"events_count":{"type":"long"},"type":{"type":"keyword"}}},"vertices":{"type":"nested","properties":{"id":{"type":"keyword"},"pipeline_ephemeral_id":{"type":"keyword"},"events_in":{"type":"long"},"events_out":{"type":"long"},"duration_in_millis":{"type":"long"},"queue_push_duration_in_millis":{"type":"long"},"long_counters":{"type":"nested","properties":{"name":{"type":"keyword"},"value":{"type":"long"}}},"double_gauges":{"type":"nested","properties":{"name":{"type":"keyword"},"value":{"type":"double"}}}}},"reloads":{"properties":{"failures":{"type":"long"},"successes":{"type":"long"}}}}},"workers":{"type":"short"},"batch_size":{"type":"integer"}}},"logstash_state":{"properties":{"uuid":{"type":"keyword"},"name":{"type":"keyword"},"host":{"type":"keyword"},"http_address":{"type":"keyword"},"ephemeral_id":{"type":"keyword"},"version":{"type":"keyword"},"snapshot":{"type":"boolean"},"status":{"type":"keyword"},"pipeline":{"properties":{"id":{"type":"keyword"},"hash":{"type":"keyword"},"ephemeral_id":{"type":"keyword"},"workers":{"type":"short"},"batch_size":{"type":"integer"},"format":{"type":"keyword"},"version":{"type":"keyword"},"representation":{"enabled":false}}}}}}}},"aliases":{}},".watch-history-7":{"order":2147483647,"index_patterns":[".watcher-history-7"],"settings":{"index":{"format":"6","number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0","xpack":{"watcher":{"template":{"version":"7"}}}}},"mappings":{"doc":{"dynamic_templates":[{"disabled_payload_fields":{"path_match":"result\.(input(\..+)|(transform(\..+))|(actions\.transform(\..+)))\.payload","match_pattern":"regex","mapping":{"type":"object","enabled":false}}},{"disabled_search_request_body_fields":{"path_match":"result\.(input(\..+)|(transform(\..+))|(actions\.transform(\..+)))\.search\.request\.(body|template)","match_pattern":"regex","mapping":{"type":"object","enabled":false}}},{"disabled_exception_fields":{"path_match":"result\.(input(\..+)|(transform(\..+))|(actions\.transform(\..+)*)|actions)\.error","match_pattern":"regex","mapping":{"type":"object","enabled":false}}},{"disabled_jira_custom_fields":{"path_match":"result.actions.jira.fields.customfield
","mapping":{"type":"object","enabled":false}}}],"dynamic":false,"properties":{"watch_id":{"type":"keyword"},"node":{"type":"keyword"},"trigger_event":{"type":"object","dynamic":true,"properties":{"type":{"type":"keyword"},"triggered_time":{"type":"date"},"manual":{"type":"object","dynamic":true,"properties":{"schedule":{"type":"object","dynamic":true,"properties":{"scheduled_time":{"type":"date"}}}}},"schedule":{"type":"object","dynamic":true,"properties":{"scheduled_time":{"type":"date"}}}}},"vars":{"type":"object","enabled":false},"input":{"type":"object","enabled":false},"condition":{"type":"object","enabled":false},"state":{"type":"keyword"},"status":{"type":"object","enabled":false,"dynamic":true},"messages":{"type":"text"},"exception":{"type":"object","enabled":false},"result":{"type":"object","dynamic":true,"properties":{"execution_time":{"type":"date"},"execution_duration":{"type":"long"},"input":{"type":"object","dynamic":true,"properties":{"type":{"type":"keyword"},"status":{"type":"keyword"},"payload":{"type":"object","enabled":false},"search":{"type":"object","dynamic":true,"properties":{"request":{"type":"object","dynamic":true,"properties":{"search_type":{"type":"keyword"},"indices":{"type":"keyword"},"types":{"type":"keyword"}}}}},"http":{"type":"object","dynamic":true,"properties":{"request":{"type":"object","dynamic":true,"properties":{"path":{"type":"keyword"},"host":{"type":"keyword"}}}}}}},"condition":{"type":"object","dynamic":true,"properties":{"type":{"type":"keyword"},"status":{"type":"keyword"},"met":{"type":"boolean"},"compare":{"type":"object","enabled":false},"array_compare":{"type":"object","enabled":false},"script":{"type":"object","enabled":false}}},"transform":{"type":"object","dynamic":true,"properties":{"type":{"type":"keyword"},"search":{"type":"object","dynamic":true,"properties":{"request":{"type":"object","dynamic":true,"properties":{"indices":{"type":"keyword"},"types":{"type":"keyword"}}}}}}},"actions":{"type":"nested","include_in_parent":true,"dynamic":true,"properties":{"id":{"type":"keyword"},"type":{"type":"keyword"},"status":{"type":"keyword"},"reason":{"type":"keyword"},"email":{"type":"object","dynamic":true,"properties":{"message":{"type":"object","dynamic":true,"properties":{"id":{"type":"keyword"},"from":{"type":"keyword"},"reply_to":{"type":"keyword"},"to":{"type":"keyword"},"cc":{"type":"keyword"},"bcc":{"type":"keyword"}}}}},"webhook":{"type":"object","dynamic":true,"properties":{"request":{"type":"object","dynamic":true,"properties":{"path":{"type":"keyword"},"host":{"type":"keyword"}}}}},"index":{"type":"object","dynamic":true,"properties":{"response":{"type":"object","dynamic":true,"properties":{"index":{"type":"keyword"},"type":{"type":"keyword"},"id":{"type":"keyword"}}}}},"hipchat":{"type":"object","dynamic":true,"properties":{"account":{"type":"keyword"},"sent_messages":{"type":"nested","include_in_parent":true,"dynamic":true,"properties":{"status":{"type":"keyword"},"reason":{"type":"text"},"request":{"type":"object","enabled":false},"response":{"type":"object","enabled":false},"room":{"type":"keyword"},"user":{"type":"keyword"},"message":{"type":"object","dynamic":true,"properties":{"message_format":{"type":"keyword"},"color":{"type":"keyword"},"notify":{"type":"boolean"},"message":{"type":"text"},"from":{"type":"text"}}}}}}},"jira":{"type":"object","dynamic":true,"properties":{"account":{"type":"keyword"},"reason":{"type":"text"},"request":{"type":"object","enabled":false},"response":{"type":"object","enabled":false},"fields":{"type":"object","dynamic":true,"properties":{"summary":{"type":"text"},"description":{"type":"text"},"labels":{"type":"text"},"project":{"type":"object","dynamic":true,"properties":{"key":{"type":"keyword"},"id":{"type":"keyword"}}},"issuetype":{"type":"object","dynamic":true,"properties":{"name":{"type":"keyword"},"id":{"type":"keyword"}}}}},"result":{"type":"object","dynamic":true,"properties":{"id":{"type":"keyword"},"key":{"type":"keyword"},"self":{"type":"keyword"}}}}},"slack":{"type":"object","dynamic":true,"properties":{"account":{"type":"keyword"},"sent_messages":{"type":"nested","include_in_parent":true,"dynamic":true,"properties":{"status":{"type":"keyword"},"reason":{"type":"text"},"request":{"type":"object","enabled":false},"response":{"type":"object","enabled":false},"to":{"type":"keyword"},"message":{"type":"object","dynamic":true,"properties":{"from":{"type":"text"},"icon":{"type":"keyword"},"text":{"type":"text"},"attachments":{"type":"nested","include_in_parent":true,"dynamic":true,"properties":{"color":{"type":"keyword"}}}}}}}}},"pagerduty":{"type":"object","dynamic":true,"properties":{"account":{"type":"keyword"},"sent_event":{"type":"nested","include_in_parent":true,"dynamic":true,"properties":{"reason":{"type":"text"},"request":{"type":"object","enabled":false},"response":{"type":"object","enabled":false},"event":{"type":"object","dynamic":true,"properties":{"type":{"type":"keyword"},"client":{"type":"text"},"client_url":{"type":"keyword"},"account":{"type":"keyword"},"attach_payload":{"type":"boolean"},"incident_key":{"type":"keyword"},"description":{"type":"text"},"context":{"type":"nested","include_in_parent":true,"dynamic":true,"properties":{"type":{"type":"keyword"},"href":{"type":"keyword"},"src":{"type":"keyword"},"alt":{"type":"text"}}}}}}}}}}}}},"metadata":{"type":"object","dynamic":true}}}},"aliases":{}},"logstash":{"order":0,"index_patterns":["logstash-"],"settings":{"index":{"routing":{"allocation":{"require":{"tag":"fast"}}},"mapping":{"total_fields":{"limit":"3000"}},"refresh_interval":"5s","number_of_shards":"6","number_of_replicas":"1","merge":{"scheduler":{"max_thread_count":"1"}}}},"mappings":{"default":{"dynamic_templates":[{"message_field":{"mapping":{"index":true,"norms":false,"type":"text"},"match_mapping_type":"string","match":"message"}},{"string_fields":{"mapping":{"index":true,"norms":false,"type":"text","fields":{"raw":{"ignore_above":256,"index":true,"type":"keyword","doc_values":true}}},"match_mapping_type":"string","match":""}},{"float_fields":{"mapping":{"type":"float","doc_values":true},"match_mapping_type":"double","match":""}},{"date_fields":{"mapping":{"type":"date","doc_values":true},"match_mapping_type":"date","match":""}},{"geo_point_fields":{"mapping":{"type":"geo_point","doc_values":true},"match_mapping_type":"string","match":""}}],"properties":{"@timestamp":{"type":"date","doc_values":true},"geoip":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}},"level":{"type":"text"},"alert_occurrences":{"type":"integer"},"@Version":{"index":true,"type":"keyword","doc_values":true},"response_time":{"type":"integer"},"ResponseTime":{"type":"float"},"Win32Status":{"type":"integer"},"event":{"type":"object","properties":{"timestamp":{"type":"date"}}},"facility":{"type":"text"},"HTTPStatus":{"type":"integer"},"response_size":{"type":"integer"},"delay_sec":{"type":"integer"},"xdelay_sec":{"type":"integer"},"SourceGeo":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}},"DestinationGeo":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}},"lobos_request":{"type":"object","properties":{"queryParams":{"type":"object","properties":{"datetime":{"type":"text"},"endDate":{"type":"text"},"start":{"type":"text"},"startDate":{"type":"text"}}}}}}}},"aliases":{}},"logstash-index-template":{"order":0,"index_patterns":[".logstash"],"settings":{"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","codec":"best_compression"}},"mappings":{"doc":{"_meta":{"logstash-version":"6.2.2"},"dynamic":"strict","properties":{"description":{"type":"text"},"last_modified":{"type":"date"},"pipeline_metadata":{"properties":{"version":{"type":"short"},"type":{"type":"keyword"}}},"pipeline":{"type":"text"},"username":{"type":"keyword"},"metadata":{"type":"object","dynamic":false}}}},"aliases":{}},"pingbeat":{"order":0,"index_patterns":["pingbeat-"],"settings":{"index":{"routing":{"allocation":{"require":{"tag":"fast"}}},"mapping":{"total_fields":{"limit":"10000"}},"refresh_interval":"5s","number_of_shards":"3","number_of_replicas":"1"}},"mappings":{"default":{"_all":{"norms":false},"_meta":{"version":"5.4.1"},"date_detection":false,"dynamic_templates":[{"strings_as_keyword":{"mapping":{"ignore_above":1024,"type":"keyword"},"match_mapping_type":"string"}}],"properties":{"@timestamp":{"type":"date"},"beat":{"properties":{"hostname":{"ignore_above":1024,"type":"keyword"},"name":{"ignore_above":1024,"type":"keyword"},"version":{"ignore_above":1024,"type":"keyword"}}},"fields":{"properties":{}},"geoip":{"properties":{"city_name":{"ignore_above":1024,"type":"keyword"},"continent_name":{"ignore_above":1024,"type":"keyword"},"country_iso_code":{"ignore_above":1024,"type":"keyword"},"location":{"type":"geo_point"},"region_name":{"ignore_above":1024,"type":"keyword"}}},"meta":{"properties":{"cloud":{"properties":{"availability_zone":{"ignore_above":1024,"type":"keyword"},"instance_id":{"ignore_above":1024,"type":"keyword"},"machine_type":{"ignore_above":1024,"type":"keyword"},"project_id":{"ignore_above":1024,"type":"keyword"},"provider":{"ignore_above":1024,"type":"keyword"},"region":{"ignore_above":1024,"type":"keyword"}}}}},"rtt":{"type":"double"},"tags":{"ignore_above":1024,"type":"keyword"},"target":{"properties":{"addr":{"type":"ip"},"description":{"norms":false,"type":"text"},"name":{"ignore_above":1024,"type":"keyword"},"tags":{"ignore_above":1024,"type":"keyword"}}}}}},"aliases":{}},".ml-meta":{"order":0,"version":6020299,"index_patterns":[".ml-meta"],"settings":{"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","unassigned":{"node_left":{"delayed_timeout":"1m"}}}},"mappings":{"doc":{"dynamic_templates":[{"strings_as_keywords":{"match":"","mapping":{"type":"keyword"}}}],"properties":{"calendar_id":{"type":"keyword"},"job_ids":{"type":"keyword"},"description":{"type":"keyword"},"start_time":{"type":"date"},"end_time":{"type":"date"}}}},"aliases":{}},"security-index-template":{"order":1000,"index_patterns":[".security-"],"settings":{"index":{"format":"6","analysis":{"filter":{"email":{"type":"pattern_capture","preserve_original":"true","patterns":["([^@]+)","(\p{L}+)","(\d+)","@(.+)"]}},"analyzer":{"email":{"filter":["email","lowercase","unique"],"tokenizer":"uax_url_email"}}},"number_of_shards":"1","priority":"1000","auto_expand_replicas":"0-all","number_of_replicas":"0"}},"mappings":{"doc":{"_meta":{"security-version":"6.2.2"},"dynamic":"strict","properties":{"username":{"type":"keyword"},"roles":{"type":"keyword"},"password":{"type":"keyword","index":false,"doc_values":false},"full_name":{"type":"text"},"email":{"type":"text","analyzer":"email"},"metadata":{"type":"object","dynamic":true},"enabled":{"type":"boolean"},"cluster":{"type":"keyword"},"indices":{"type":"object","properties":{"field_security":{"properties":{"grant":{"type":"keyword"},"except":{"type":"keyword"}}},"names":{"type":"keyword"},"privileges":{"type":"keyword"},"query":{"type":"keyword"}}},"name":{"type":"keyword"},"run_as":{"type":"keyword"},"doc_type":{"type":"keyword"},"type":{"type":"keyword"},"expiration_time":{"type":"date","format":"epoch_millis"},"creation_time":{"type":"date","format":"epoch_millis"},"rules":{"type":"object","dynamic":true},"refresh_token":{"type":"object","properties":{"token":{"type":"keyword"},"refreshed":{"type":"boolean"},"invalidated":{"type":"boolean"},"client":{"type":"object","properties":{"type":{"type":"keyword"},"user":{"type":"keyword"},"realm":{"type":"keyword"}}}}},"access_token":{"type":"object","properties":{"user_token":{"type":"object","properties":{"id":{"type":"keyword"},"expiration_time":{"type":"date","format":"epoch_millis"},"version":{"type":"integer"},"metadata":{"type":"object","dynamic":true},"authentication":{"type":"binary"}}},"invalidated":{"type":"boolean"},"realm":{"type":"keyword"}}}}}},"aliases":{}},".ml-state":{"order":0,"version":6020299,"index_patterns":[".ml-state"],"settings":{"index":{"translog":{"durability":"async"},"auto_expand_replicas":"0-1","unassigned":{"node_left":{"delayed_timeout":"1m"}}}},"mappings":{"doc":{"_meta":{"version":"6.2.2"},"enabled":false}},"aliases":{}},"custom_monitoring":{"order":1,"index_patterns":[".monitoring-"],"settings":{"index":{"routing":{"allocation":{"require":{"tag":"fast"}}},"refresh_interval":"5s","number_of_shards":"3","number_of_replicas":"1"}},"mappings":{},"aliases":{}},"kibana_index_template:.kibana":{"order":0,"index_patterns":[".kibana"],"settings":{"index":{"number_of_shards":"1","auto_expand_replicas":"0-1"}},"mappings":{"doc":{"dynamic":"strict","properties":{"type":{"type":"keyword"},"updated_at":{"type":"date"},"config":{"dynamic":true,"properties":{"buildNum":{"type":"keyword"}}},"index-pattern":{"properties":{"fieldFormatMap":{"type":"text"},"fields":{"type":"text"},"intervalName":{"type":"keyword"},"notExpandable":{"type":"boolean"},"sourceFilters":{"type":"text"},"timeFieldName":{"type":"keyword"},"title":{"type":"text"}}},"visualization":{"properties":{"description":{"type":"text"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"savedSearchId":{"type":"keyword"},"title":{"type":"text"},"uiStateJSON":{"type":"text"},"version":{"type":"integer"},"visState":{"type":"text"}}},"search":{"properties":{"columns":{"type":"keyword"},"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"sort":{"type":"keyword"},"title":{"type":"text"},"version":{"type":"integer"}}},"dashboard":{"properties":{"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"optionsJSON":{"type":"text"},"panelsJSON":{"type":"text"},"refreshInterval":{"properties":{"display":{"type":"keyword"},"pause":{"type":"boolean"},"section":{"type":"integer"},"value":{"type":"integer"}}},"timeFrom":{"type":"keyword"},"timeRestore":{"type":"boolean"},"timeTo":{"type":"keyword"},"title":{"type":"text"},"uiStateJSON":{"type":"text"},"version":{"type":"integer"}}},"url":{"properties":{"accessCount":{"type":"long"},"accessDate":{"type":"date"},"createDate":{"type":"date"},"url":{"type":"text","fields":{"keyword":{"type":"keyword","ignore_above":2048}}}}},"server":{"properties":{"uuid":{"type":"keyword"}}},"timelion-sheet":{"properties":{"description":{"type":"text"},"hits":{"type":"integer"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"timelion_chart_height":{"type":"integer"},"timelion_columns":{"type":"integer"},"timelion_interval":{"type":"keyword"},"timelion_other_interval":{"type":"keyword"},"timelion_rows":{"type":"integer"},"timelion_sheet":{"type":"text"},"title":{"type":"text"},"version":{"type":"integer"}}},"graph-workspace":{"properties":{"description":{"type":"text"},"kibanaSavedObjectMeta":{"properties":{"searchSourceJSON":{"type":"text"}}},"numLinks":{"type":"integer"},"numVertices":{"type":"integer"},"title":{"type":"text"},"version":{"type":"integer"},"wsState":{"type":"text"}}}}}},"aliases":{}},"security_audit_log":{"order":2147483647,"index_patterns":[".security_audit_log*"],"settings":{},"mappings":{"doc":{"_meta":{"security-version":"6.2.2"},"dynamic":"strict","properties":{"@timestamp":{"type":"date","format":"date_time","doc_values":true},"node_name":{"type":"keyword"},"node_host_name":{"type":"keyword"},"node_host_address":{"type":"keyword"},"layer":{"type":"keyword"},"event_type":{"type":"keyword"},"origin_address":{"type":"keyword"},"origin_type":{"type":"keyword"},"principal":{"type":"keyword"},"roles":{"type":"keyword"},"run_by_principal":{"type":"keyword"},"run_as_principal":{"type":"keyword"},"action":{"type":"keyword"},"indices":{"type":"keyword"},"request":{"type":"keyword"},"request_body":{"type":"keyword","index":false,"doc_values":false},"uri":{"type":"keyword"},"realm":{"type":"keyword"},"transport_profile":{"type":"keyword"},"rule":{"type":"keyword"}}}},"aliases":{}},".ml-anomalies-":{"order":0,"version":6020299,"index_patterns":[".ml-anomalies-"],"settings":{"index":{"unassigned":{"node_left":{"delayed_timeout":"1m"}},"translog":{"durability":"async"},"auto_expand_replicas":"0-1","query":{"default_field":"all_field_values"}}},"mappings":{"doc":{"_meta":{"version":"6.2.2"},"dynamic_templates":[{"strings_as_keywords":{"match":"","mapping":{"type":"keyword"}}}],"properties":{"all_field_values":{"type":"text","analyzer":"whitespace"},"job_id":{"type":"keyword","copy_to":"all_field_values"},"timestamp":{"type":"date"},"result_type":{"type":"keyword"},"anomaly_score":{"type":"double"},"raw_anomaly_score":{"type":"double"},"initial_anomaly_score":{"type":"double"},"is_interim":{"type":"boolean"},"event_count":{"type":"long"},"bucket_span":{"type":"long"},"processing_time_ms":{"type":"long"},"scheduled_events":{"type":"keyword"},"partition_scores":{"type":"nested","properties":{"partition_field_name":{"type":"keyword"},"partition_field_value":{"type":"keyword"},"initial_anomaly_score":{"type":"double"},"probability":{"type":"double"}}},"bucket_influencers":{"type":"nested","properties":{"job_id":{"type":"keyword"},"result_type":{"type":"keyword"},"influencer_field_name":{"type":"keyword"},"initial_anomaly_score":{"type":"double"},"anomaly_score":{"type":"double"},"raw_anomaly_score":{"type":"double"},"probability":{"type":"double"},"timestamp":{"type":"date"},"bucket_span":{"type":"long"},"is_interim":{"type":"boolean"}}},"model_feature":{"type":"keyword"},"model_lower":{"type":"double"},"model_upper":{"type":"double"},"model_median":{"type":"double"},"forecast_lower":{"type":"double"},"forecast_upper":{"type":"double"},"forecast_prediction":{"type":"double"},"forecast_id":{"type":"keyword"},"forecast_start_timestamp":{"type":"date"},"forecast_end_timestamp":{"type":"date"},"forecast_create_timestamp":{"type":"date"},"forecast_expiry_timestamp":{"type":"date"},"forecast_messages":{"type":"keyword"},"forecast_progress":{"type":"double"},"forecast_status":{"type":"keyword"},"forecast_memory_bytes":{"type":"long"},"detector_index":{"type":"integer"},"actual":{"type":"double"},"typical":{"type":"double"},"probability":{"type":"double"},"function":{"type":"keyword"},"function_description":{"type":"keyword"},"by_field_name":{"type":"keyword"},"by_field_value":{"type":"keyword","copy_to":"all_field_values"},"field_name":{"type":"keyword"},"partition_field_name":{"type":"keyword"},"partition_field_value":{"type":"keyword","copy_to":"all_field_values"},"over_field_name":{"type":"keyword"},"over_field_value":{"type":"keyword","copy_to":"all_field_values"},"record_score":{"type":"double"},"initial_record_score":{"type":"double"},"causes":{"type":"nested","properties":{"actual":{"type":"double"},"typical":{"type":"double"},"probability":{"type":"double"},"function":{"type":"keyword"},"function_description":{"type":"keyword"},"by_field_name":{"type":"keyword"},"by_field_value":{"type":"keyword","copy_to":"all_field_values"},"correlated_by_field_value":{"type":"keyword","copy_to":"all_field_values"},"field_name":{"type":"keyword"},"partition_field_name":{"type":"keyword"},"partition_field_value":{"type":"keyword","copy_to":"all_field_values"},"over_field_name":{"type":"keyword"},"over_field_value":{"type":"keyword","copy_to":"all_field_values"}}},"influencers":{"type":"nested","properties":{"influencer_field_name":{"type":"keyword"},"influencer_field_values":{"type":"keyword","copy_to":"all_field_values"}}},"influencer_score":{"type":"double"},"initial_influencer_score":{"type":"double"},"influencer_field_name":{"type":"keyword"},"influencer_field_value":{"type":"keyword","copy_to":"all_field_values"},"model_bytes":{"type":"long"},"total_by_field_count":{"type":"long"},"total_over_field_count":{"type":"long"},"total_partition_field_count":{"type":"long"},"bucket_allocation_failures_count":{"type":"long"},"memory_status":{"type":"keyword"},"log_time":{"type":"date"},"category_id":{"type":"long"},"terms":{"type":"text"},"regex":{"type":"keyword"},"max_matching_length":{"type":"long"},"examples":{"type":"text"},"processed_record_count":{"type":"long"},"processed_field_count":{"type":"long"},"input_bytes":{"type":"long"},"input_record_count":{"type":"long"},"input_field_count":{"type":"long"},"invalid_date_count":{"type":"long"},"missing_field_count":{"type":"long"},"out_of_order_timestamp_count":{"type":"long"},"empty_bucket_count":{"type":"long"},"sparse_bucket_count":{"type":"long"},"bucket_count":{"type":"long"},"earliest_record_timestamp":{"type":"date"},"latest_record_timestamp":{"type":"date"},"latest_empty_bucket_timestamp":{"type":"date"},"latest_sparse_bucket_timestamp":{"type":"date"},"last_data_time":{"type":"date"},"description":{"type":"text"},"snapshot_id":{"type":"keyword"},"snapshot_doc_count":{"type":"integer"},"retain":{"type":"boolean"},"model_size_stats":{"properties":{"job_id":{"type":"keyword"},"result_type":{"type":"keyword"},"timestamp":{"type":"date"},"model_bytes":{"type":"long"},"total_by_field_count":{"type":"long"},"total_over_field_count":{"type":"long"},"total_partition_field_count":{"type":"long"},"bucket_allocation_failures_count":{"type":"long"},"memory_status":{"type":"keyword"},"log_time":{"type":"date"}}},"quantiles":{"enabled":false},"latest_record_time_stamp":{"type":"date"},"latest_result_time_stamp":{"type":"date"}}}},"aliases":{}},".watches":{"order":2147483647,"index_patterns":[".watches*"],"settings":{"index":{"format":"6","number_of_shards":"1","priority":"800","auto_expand_replicas":"0-1","number_of_replicas":"0"}},"mappings":{"doc":{"dynamic":"strict","properties":{"status":{"type":"object","enabled":false,"dynamic":true},"trigger":{"type":"object","enabled":false,"dynamic":true},"input":{"type":"object","enabled":false,"dynamic":true},"condition":{"type":"object","enabled":false,"dynamic":true},"throttle_period":{"type":"keyword","index":false,"doc_values":false},"throttle_period_in_millis":{"type":"long","index":false,"doc_values":false},"transform":{"type":"object","enabled":false,"dynamic":true},"actions":{"type":"object","enabled":false,"dynamic":true},"metadata":{"type":"object","dynamic":true}}}},"aliases":{}},".monitoring-kibana":{"order":0,"version":6020099,"index_patterns":[".monitoring-kibana-6-"],"settings":{"index":{"format":"6","codec":"best_compression","number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}},"mappings":{"doc":{"dynamic":false,"properties":{"cluster_uuid":{"type":"keyword"},"timestamp":{"type":"date","format":"date_time"},"interval_ms":{"type":"long"},"type":{"type":"keyword"},"source_node":{"properties":{"uuid":{"type":"keyword"},"host":{"type":"keyword"},"transport_address":{"type":"keyword"},"ip":{"type":"keyword"},"name":{"type":"keyword"},"timestamp":{"type":"date","format":"date_time"}}},"kibana_stats":{"properties":{"kibana":{"properties":{"uuid":{"type":"keyword"},"name":{"type":"keyword"},"host":{"type":"keyword"},"transport_address":{"type":"keyword"},"version":{"type":"keyword"},"snapshot":{"type":"boolean"},"status":{"type":"keyword"},"statuses":{"properties":{"name":{"type":"keyword"},"state":{"type":"keyword"}}}}},"cloud":{"properties":{"name":{"type":"keyword"},"id":{"type":"keyword"},"vm_type":{"type":"keyword"},"region":{"type":"keyword"},"zone":{"type":"keyword"},"metadata":{"type":"object"}}},"os":{"properties":{"load":{"properties":{"1m":{"type":"half_float"},"5m":{"type":"half_float"},"15m":{"type":"half_float"}}},"memory":{"properties":{"total_in_bytes":{"type":"float"},"free_in_bytes":{"type":"float"},"used_in_bytes":{"type":"float"}}},"uptime_in_millis":{"type":"long"}}},"process":{"properties":{"memory":{"properties":{"heap":{"properties":{"total_in_bytes":{"type":"float"},"used_in_bytes":{"type":"float"},"size_limit":{"type":"float"}}},"resident_set_size_in_bytes":{"type":"float"}}},"event_loop_delay":{"type":"float"},"uptime_in_millis":{"type":"long"}}},"sockets":{"properties":{"http":{"properties":{"total":{"type":"long"}}},"https":{"properties":{"total":{"type":"long"}}}}},"timestamp":{"type":"date"},"requests":{"properties":{"disconnects":{"type":"long"},"total":{"type":"long"},"status_codes":{"type":"object"}}},"response_times":{"properties":{"average":{"type":"float"},"max":{"type":"float"}}},"concurrent_connections":{"type":"long"}}}}}},"aliases":{}},".monitoring-beats":{"order":0,"version":6020099,"index_patterns":[".monitoring-beats-6-"],"settings":{"index":{"format":"6","codec":"best_compression","number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}},"mappings":{"doc":{"dynamic":false,"properties":{"beats_stats":{"properties":{"beat":{"properties":{"host":{"type":"keyword"},"name":{"type":"keyword"},"type":{"type":"keyword"},"uuid":{"type":"keyword"},"version":{"type":"keyword"}}},"metrics":{"properties":{"beat":{"properties":{"cpu":{"properties":{"total":{"properties":{"norm":{"properties":{"pct":{"type":"double"}}},"pct":{"type":"double"},"value":{"type":"double"}}}}},"info":{"properties":{"ephemeral_id":{"type":"keyword"},"uptime":{"properties":{"ms":{"type":"long"}}}}},"memstats":{"properties":{"gc_next":{"type":"long"},"memory_alloc":{"type":"long"},"memory_total":{"type":"long"},"rss":{"type":"long"}}}}},"libbeat":{"properties":{"config":{"properties":{"module":{"properties":{"running":{"type":"long"},"starts":{"type":"long"},"stops":{"type":"long"}}},"reloads":{"type":"long"}}},"output":{"properties":{"events":{"properties":{"acked":{"type":"long"},"active":{"type":"long"},"batches":{"type":"long"},"dropped":{"type":"long"},"duplicates":{"type":"long"},"failed":{"type":"long"},"total":{"type":"long"}}},"read":{"properties":{"bytes":{"type":"long"},"errors":{"type":"long"}}},"type":{"type":"keyword"},"write":{"properties":{"bytes":{"type":"long"},"errors":{"type":"long"}}}}},"pipeline":{"properties":{"clients":{"type":"long"},"events":{"properties":{"active":{"type":"long"},"dropped":{"type":"long"},"failed":{"type":"long"},"filtered":{"type":"long"},"published":{"type":"long"},"retry":{"type":"long"},"total":{"type":"long"}}},"queue":{"properties":{"acked":{"type":"long"}}}}}}},"system":{"properties":{"cpu":{"properties":{"cores":{"type":"long"},"total":{"properties":{"norm":{"properties":{"pct":{"type":"double"}}},"pct":{"type":"double"}}}}},"load":{"properties":{"1":{"type":"double"},"15":{"type":"double"},"5":{"type":"double"},"norm":{"properties":{"1":{"type":"double"},"15":{"type":"double"},"5":{"type":"double"}}}}}}}}},"tags":{"type":"keyword"},"timestamp":{"format":"date_time","type":"date"}}},"cluster_uuid":{"type":"keyword"},"interval_ms":{"type":"long"},"source_node":{"properties":{"host":{"type":"keyword"},"ip":{"type":"keyword"},"name":{"type":"keyword"},"transport_address":{"type":"keyword"},"uuid":{"type":"keyword"}}},"timestamp":{"format":"date_time","type":"date"},"type":{"type":"keyword"}}}},"aliases":{}},".kibana":{"order":0,"index_patterns":[".kibana"],"settings":{"index":{"number_of_replicas":"2"}},"mappings":{},"aliases":{}},".monitoring-es":{"order":0,"version":6020099,"index_patterns":[".monitoring-es-6-"],"settings":{"index":{"format":"6","codec":"best_compression","number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}},"mappings":{"doc":{"date_detection":false,"dynamic":false,"properties":{"cluster_uuid":{"type":"keyword"},"state_uuid":{"type":"keyword"},"timestamp":{"type":"date","format":"date_time"},"interval_ms":{"type":"long"},"type":{"type":"keyword"},"source_node":{"properties":{"uuid":{"type":"keyword"},"host":{"type":"keyword"},"transport_address":{"type":"keyword"},"ip":{"type":"keyword"},"name":{"type":"keyword"},"timestamp":{"type":"date","format":"date_time"}}},"indices_stats":{"properties":{"_all":{"properties":{"primaries":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"indexing":{"properties":{"index_total":{"type":"long"},"index_time_in_millis":{"type":"long"}}},"search":{"properties":{"query_total":{"type":"long"},"query_time_in_millis":{"type":"long"}}}}},"total":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"indexing":{"properties":{"index_total":{"type":"long"},"index_time_in_millis":{"type":"long"}}},"search":{"properties":{"query_total":{"type":"long"},"query_time_in_millis":{"type":"long"}}}}}}}}},"index_stats":{"properties":{"index":{"type":"keyword"},"primaries":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"fielddata":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"}}},"store":{"properties":{"size_in_bytes":{"type":"long"}}},"indexing":{"properties":{"index_total":{"type":"long"},"index_time_in_millis":{"type":"long"},"throttle_time_in_millis":{"type":"long"}}},"merges":{"properties":{"total_size_in_bytes":{"type":"long"}}},"query_cache":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"},"hit_count":{"type":"long"},"miss_count":{"type":"long"}}},"request_cache":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"},"hit_count":{"type":"long"},"miss_count":{"type":"long"}}},"search":{"properties":{"query_total":{"type":"long"},"query_time_in_millis":{"type":"long"}}},"segments":{"properties":{"count":{"type":"integer"},"memory_in_bytes":{"type":"long"},"terms_memory_in_bytes":{"type":"long"},"points_memory_in_bytes":{"type":"long"},"stored_fields_memory_in_bytes":{"type":"long"},"term_vectors_memory_in_bytes":{"type":"long"},"norms_memory_in_bytes":{"type":"long"},"doc_values_memory_in_bytes":{"type":"long"},"index_writer_memory_in_bytes":{"type":"long"},"version_map_memory_in_bytes":{"type":"long"},"fixed_bit_set_memory_in_bytes":{"type":"long"}}},"refresh":{"properties":{"total_time_in_millis":{"type":"long"}}}}},"total":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"fielddata":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"}}},"store":{"properties":{"size_in_bytes":{"type":"long"}}},"indexing":{"properties":{"index_total":{"type":"long"},"index_time_in_millis":{"type":"long"},"throttle_time_in_millis":{"type":"long"}}},"merges":{"properties":{"total_size_in_bytes":{"type":"long"}}},"query_cache":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"},"hit_count":{"type":"long"},"miss_count":{"type":"long"}}},"request_cache":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"},"hit_count":{"type":"long"},"miss_count":{"type":"long"}}},"search":{"properties":{"query_total":{"type":"long"},"query_time_in_millis":{"type":"long"}}},"segments":{"properties":{"count":{"type":"integer"},"memory_in_bytes":{"type":"long"},"terms_memory_in_bytes":{"type":"long"},"points_memory_in_bytes":{"type":"long"},"stored_fields_memory_in_bytes":{"type":"long"},"term_vectors_memory_in_bytes":{"type":"long"},"norms_memory_in_bytes":{"type":"long"},"doc_values_memory_in_bytes":{"type":"long"},"index_writer_memory_in_bytes":{"type":"long"},"version_map_memory_in_bytes":{"type":"long"},"fixed_bit_set_memory_in_bytes":{"type":"long"}}},"refresh":{"properties":{"total_time_in_millis":{"type":"long"}}}}}}},"cluster_stats":{"properties":{"nodes":{"type":"object"},"indices":{"type":"object"}}},"cluster_state":{"properties":{"version":{"type":"long"},"nodes_hash":{"type":"integer"},"master_node":{"type":"keyword"},"state_uuid":{"type":"keyword"},"status":{"type":"keyword"},"nodes":{"type":"object"},"shards":{"type":"object"}}},"node_stats":{"properties":{"node_id":{"type":"keyword"},"node_master":{"type":"boolean"},"mlockall":{"type":"boolean"},"indices":{"properties":{"docs":{"properties":{"count":{"type":"long"}}},"fielddata":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"}}},"indexing":{"properties":{"index_time_in_millis":{"type":"long"},"index_total":{"type":"long"},"throttle_time_in_millis":{"type":"long"}}},"query_cache":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"},"hit_count":{"type":"long"},"miss_count":{"type":"long"}}},"request_cache":{"properties":{"memory_size_in_bytes":{"type":"long"},"evictions":{"type":"long"},"hit_count":{"type":"long"},"miss_count":{"type":"long"}}},"search":{"properties":{"query_time_in_millis":{"type":"long"},"query_total":{"type":"long"}}},"segments":{"properties":{"count":{"type":"integer"},"memory_in_bytes":{"type":"long"},"terms_memory_in_bytes":{"type":"long"},"points_memory_in_bytes":{"type":"long"},"stored_fields_memory_in_bytes":{"type":"long"},"term_vectors_memory_in_bytes":{"type":"long"},"norms_memory_in_bytes":{"type":"long"},"doc_values_memory_in_bytes":{"type":"long"},"index_writer_memory_in_bytes":{"type":"long"},"version_map_memory_in_bytes":{"type":"long"},"fixed_bit_set_memory_in_bytes":{"type":"long"}}},"store":{"properties":{"size_in_bytes":{"type":"long"}}}}},"fs":{"properties":{"total":{"properties":{"total_in_bytes":{"type":"long"},"free_in_bytes":{"type":"long"},"available_in_bytes":{"type":"long"}}},"data":{"properties":{"spins":{"type":"boolean"}}},"io_stats":{"properties":{"total":{"properties":{"operations":{"type":"long"},"read_operations":{"type":"long"},"write_operations":{"type":"long"},"read_kilobytes":{"type":"long"},"write_kilobytes":{"type":"long"}}}}}}},"os":{"properties":{"cgroup":{"properties":{"cpuacct":{"properties":{"control_group":{"type":"keyword"},"usage_nanos":{"type":"long"}}},"cpu":{"properties":{"cfs_quota_micros":{"type":"long"},"control_group":{"type":"keyword"},"stat":{"properties":{"number_of_elapsed_periods":{"type":"long"},"number_of_times_throttled":{"type":"long"},"time_throttled_nanos":{"type":"long"}}}}},"memory":{"properties":{"control_group":{"type":"keyword"},"limit_in_bytes":{"type":"keyword"},"usage_in_bytes":{"type":"keyword"}}}}},"cpu":{"properties":{"load_average":{"properties":{"1m":{"type":"half_float"},"5m":{"type":"half_float"},"15m":{"type":"half_float"}}}}}}},"process":{"properties":{"open_file_descriptors":{"type":"long"},"max_file_descriptors":{"type":"long"},"cpu":{"properties":{"percent":{"type":"half_float"}}}}},"jvm":{"properties":{"mem":{"properties":{"heap_used_in_bytes":{"type":"long"},"heap_used_percent":{"type":"half_float"},"heap_max_in_bytes":{"type":"long"}}},"gc":{"properties":{"collectors":{"properties":{"young":{"properties":{"collection_count":{"type":"long"},"collection_time_in_millis":{"type":"long"}}},"old":{"properties":{"collection_count":{"type":"long"},"collection_time_in_millis":{"type":"long"}}}}}}}}},"thread_pool":{"properties":{"bulk":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"generic":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"get":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"index":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"maanagement":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"search":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}},"watcher":{"properties":{"threads":{"type":"integer"},"queue":{"type":"integer"},"rejected":{"type":"long"}}}}}}},"index_recovery":{"type":"object"},"shard":{"properties":{"state":{"type":"keyword"},"primary":{"type":"boolean"},"index":{"type":"keyword"},"relocating_node":{"type":"keyword"},"shard":{"type":"long"},"node":{"type":"keyword"}}},"job_stats":{"properties":{"job_id":{"type":"keyword"},"state":{"type":"keyword"},"data_counts":{"properties":{"input_bytes":{"type":"long"},"processed_record_count":{"type":"long"},"empty_bucket_count":{"type":"long"},"sparse_bucket_count":{"type":"long"},"bucket_count":{"type":"long"},"earliest_record_timestamp":{"type":"date"},"latest_record_timestamp":{"type":"date"}}},"model_size_stats":{"properties":{"model_bytes":{"type":"long"},"bucket_allocation_failures_count":{"type":"long"}}},"node":{"properties":{"id":{"type":"keyword"}}}}}}}},"aliases":{}},"kibana":{"order":1,"index_patterns":[".kibana"],"settings":{"index":{"routing":{"allocation":{"require":{"tag":"fast"}}},"refresh_interval":"5s","number_of_shards":"3","number_of_replicas":"1"}},"mappings":{},"aliases":{}},".monitoring-alerts":{"order":0,"version":6020099,"index_patterns":[".monitoring-alerts-6"],"settings":{"index":{"format":"6","codec":"best_compression","number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}},"mappings":{"doc":{"dynamic":false,"properties":{"timestamp":{"type":"date"},"update_timestamp":{"type":"date"},"resolved_timestamp":{"type":"date"},"prefix":{"type":"text"},"message":{"type":"text"},"suffix":{"type":"text"},"metadata":{"properties":{"cluster_uuid":{"type":"keyword"},"link":{"type":"keyword"},"severity":{"type":"short"},"type":{"type":"keyword"},"version":{"type":"keyword"},"watch":{"type":"keyword"}}}}}},"aliases":{}},".ml-notifications":{"order":0,"version":6020299,"index_patterns":[".ml-notifications"],"settings":{"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","unassigned":{"node_left":{"delayed_timeout":"1m"}}}},"mappings":{"audit_message":{"properties":{"job_id":{"type":"keyword"},"level":{"type":"keyword"},"message":{"type":"text","fields":{"raw":{"type":"keyword"}}},"timestamp":{"type":"date"},"node_name":{"type":"keyword"}}}},"aliases":{}},"nginx":{"order":0,"index_patterns":["nginx-"],"settings":{"index":{"routing":{"allocation":{"require":{"tag":"archive"}}},"refresh_interval":"5s","number_of_shards":"6","number_of_replicas":"1","merge":{"scheduler":{"max_thread_count":"1"}}}},"mappings":{"default":{"dynamic_templates":[{"message_field":{"mapping":{"index":true,"norms":false,"type":"text"},"match_mapping_type":"string","match":"message"}},{"string_fields":{"mapping":{"index":true,"norms":false,"type":"text","fields":{"raw":{"ignore_above":256,"index":true,"type":"keyword","doc_values":true}}},"match_mapping_type":"string","match":""}},{"float_fields":{"mapping":{"type":"float","doc_values":true},"match_mapping_type":"double","match":""}},{"date_fields":{"mapping":{"type":"date","doc_values":true},"match_mapping_type":"date","match":""}},{"geo_point_fields":{"mapping":{"type":"geo_point","doc_values":true},"match_mapping_type":"string","match":""}}],"properties":{"@timestamp":{"type":"date","doc_values":true},"geoip":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}},"level":{"type":"text"},"alert_occurrences":{"type":"integer"},"@Version":{"index":true,"type":"keyword","doc_values":true},"response_time":{"type":"integer"},"ResponseTime":{"type":"float"},"Win32Status":{"type":"integer"},"event":{"type":"object","properties":{"timestamp":{"type":"date"}}},"facility":{"type":"text"},"HTTPStatus":{"type":"integer"},"response_size":{"type":"integer"},"SourceGeo":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}},"DestinationGeo":{"dynamic":true,"type":"object","properties":{"latitude":{"type":"float","doc_values":true},"ip":{"type":"ip","doc_values":true},"location":{"type":"geo_point","doc_values":true},"longitude":{"type":"float","doc_values":true}}}}}},"aliases":{}},".triggered_watches":{"order":2147483647,"index_patterns":[".triggered_watches*"],"settings":{"index":{"format":"6","refresh_interval":"-1","number_of_shards":"1","priority":"900","auto_expand_replicas":"0-1"}},"mappings":{"doc":{"dynamic":"strict","properties":{"trigger_event":{"type":"object","dynamic":true,"enabled":false,"properties":{"schedule":{"type":"object","dynamic":true,"properties":{"triggered_time":{"type":"date"},"scheduled_time":{"type":"date"}}}}},"state":{"type":"keyword"}}}},"aliases":{}}}

@patrickstjohn
Copy link

We are having an identical problem but on ES 6.3.0 and ingest via NiFi instead of Logstash. In our case mappings are being applied but the template is not that sets our number of shards (from 5 to 40) and our refresh_interval (from 1s to 300s). When the templates aren't properly applied to our indices we aren't able to ingest at acceptable rates. Currently, we are creating indices in advance and then validating their settings as a workaround.

@kierenj
Copy link

kierenj commented Aug 6, 2018

I don't know if this is related, but I have a template with number_of_replicas as 0, but indexes are created with number_of_replicas as 1. The other setting I overrode (number_of_shards) is applied correctly: https://discuss.elastic.co/t/set-up-index-template-with-0-replicas-always-creates-with-1/143010

@dakrone
Copy link
Member

dakrone commented May 8, 2024

This has been open for quite a while, and we haven't made much progress on this due to focus in other areas. For now I'm going to close this as something we aren't planning on implementing. We can re-open it later if needed.

@dakrone dakrone closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team
Projects
None yet
Development

No branches or pull requests

7 participants