• Elasticsearch日志之删除索引


    1.查询索引

    [root@ecs-1559-0326389 elasticsearch]# curl -XGET http://localhost:9200/*
    {"zipkin:span-2019-05-15":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-15","mapper":{"dynamic":"false"},"creation_date":"1557878400772","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"vqVhABYrRhSuJi-7trCVNA","version":{"created":"5061299"}}}},"zipkin:span-2019-05-20":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-20","mapper":{"dynamic":"false"},"creation_date":"1558310400181","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"aSxRFQT2RLiNnmiN5sEeuw","version":{"created":"5061299"}}}},"zipkin:span-2019-05-10":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-10","mapper":{"dynamic":"false"},"creation_date":"1557446400121","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"DA4EumVSQLuMKHJASc8FAg","version":{"created":"5061299"}}}},"zipkin:span-2019-05-18":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-18","mapper":{"dynamic":"false"},"creation_date":"1558137600181","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"nTt8mxBBREGZSLYaAgDHdg","version":{"created":"5061299"}}}},"zipkin:span-2019-05-30":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-30","mapper":{"dynamic":"false"},"creation_date":"1559174400866","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"GIKXH6-KRn6PwC9PLiajow","version":{"created":"5061299"}}}},"zipkin:span-2019-05-24":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-24","mapper":{"dynamic":"false"},"creation_date":"1558656000581","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"HkktUXqPQKS8v02HoUUK6A","version":{"created":"5061299"}}}},"zipkin:span-2019-05-26":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-26","mapper":{"dynamic":"false"},"creation_date":"1558828801765","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"S0rpYwWjQf2t0gzcnBVZsQ","version":{"created":"5061299"}}}},"zipkin:span-2019-05-12":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-12","mapper":{"dynamic":"false"},"creation_date":"1557619200201","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"3I2mwfhjQ9un2x3qPzZ8Eg","version":{"created":"5061299"}}}},"zipkin:span-2019-05-29":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-29","mapper":{"dynamic":"false"},"creation_date":"1559088000653","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"5ghqkP85Sim1wOaQASou5Q","version":{"created":"5061299"}}}},"zipkin:span-2019-05-08":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-08","mapper":{"dynamic":"false"},"creation_date":"1557273600152","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"0Uw0KlpaRGGe-NUbwieMOg","version":{"created":"5061299"}}}},"zipkin:span-2019-05-07":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-07","mapper":{"dynamic":"false"},"creation_date":"1557187200373","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"s4kI-4-yTgOdSI04lG1sig","version":{"created":"5061299"}}}},"zipkin:span-2019-05-21":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-21","mapper":{"dynamic":"false"},"creation_date":"1558396800379","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"POPeTob8ROS42tRjZYbIWA","version":{"created":"5061299"}}}},"zipkin:span-2019-05-27":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-27","mapper":{"dynamic":"false"},"creation_date":"1558915201003","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"MtjUx-IyT62N6R9lIxMvLg","version":{"created":"5061299"}}}},"zipkin:span-2019-05-11":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-11","mapper":{"dynamic":"false"},"creation_date":"1557532800142","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"YwQJk4D8QR2ytYRtKwjIFw","version":{"created":"5061299"}}}},"zipkin:span-2019-05-04":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-04","mapper":{"dynamic":"false"},"creation_date":"1556928000265","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"DXWGYZtSTn-fh9zn-76UOQ","version":{"created":"5061299"}}}},"zipkin:span-2019-05-01":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-01","mapper":{"dynamic":"false"},"creation_date":"1556668800153","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"Mv-WZb0IQYeCk1QMw5dMqQ","version":{"created":"5061299"}}}},"zipkin:span-2019-05-14":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-14","mapper":{"dynamic":"false"},"creation_date":"1557792000667","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"s2lEueh5QbuXjydlsYr_xQ","version":{"created":"5061299"}}}},"zipkin:span-2019-05-02":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-02","mapper":{"dynamic":"false"},"creation_date":"1556755200032","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"vZ6LHawvTxiZuNkAEiN1LA","version":{"created":"5061299"}}}},"zipkin:span-2019-05-31":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-31","mapper":{"dynamic":"false"},"creation_date":"1559260800369","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"fCDTcTUHQ-Sk5mgjla53cQ","version":{"created":"5061299"}}}},"zipkin:span-2019-05-25":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-25","mapper":{"dynamic":"false"},"creation_date":"1558742401218","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"AeaMAKALTKOKNVlVwTFyBw","version":{"created":"5061299"}}}},"zipkin:span-2019-05-13":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-13","mapper":{"dynamic":"false"},"creation_date":"1557705600208","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"Og2H4NdCTHu7SJ0Fhn0aUg","version":{"created":"5061299"}}}},"zipkin:span-2019-05-09":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-09","mapper":{"dynamic":"false"},"creation_date":"1557360000181","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"UE7pzuPlSzexUKeqwIWe3A","version":{"created":"5061299"}}}},"zipkin:span-2019-05-19":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-19","mapper":{"dynamic":"false"},"creation_date":"1558224000323","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"mnuxi-pCRWOCmaSAarcv9A","version":{"created":"5061299"}}}},"zipkin:span-2019-05-22":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-22","mapper":{"dynamic":"false"},"creation_date":"1558483200541","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"Y_U9A0GlRiGTrrutCktTjQ","version":{"created":"5061299"}}}},"zipkin:span-2019-05-06":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-06","mapper":{"dynamic":"false"},"creation_date":"1557100800222","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"Zmc4lS3TSBSsC0FWPwgfZQ","version":{"created":"5061299"}}}},"zipkin:span-2019-05-17":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-17","mapper":{"dynamic":"false"},"creation_date":"1558051200107","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"ouXLBLzcRzaQMntB-4-6HA","version":{"created":"5061299"}}}},"zipkin:span-2019-05-05":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-05","mapper":{"dynamic":"false"},"creation_date":"1557014400056","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"53jChpIaSEGayhNqkifBhQ","version":{"created":"5061299"}}}},"zipkin:span-2019-05-23":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-23","mapper":{"dynamic":"false"},"creation_date":"1558569600156","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"TnHi92bKS62xWaanb1CNXw","version":{"created":"5061299"}}}},"zipkin:span-2019-05-03":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-03","mapper":{"dynamic":"false"},"creation_date":"1556841600059","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"-1kqkTeIS5KvlC9xE0Pvsw","version":{"created":"5061299"}}}},"zipkin:span-2019-05-16":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-16","mapper":{"dynamic":"false"},"creation_date":"1557964800309","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"VXNwgDd5QAOz9rGLRU3KOQ","version":{"created":"5061299"}}}}}
    View Code

    //查看到有很多 zipkin日志索引

    获取当前索引

    [root@ecs-1559-0326389 ~]$ curl localhost:9200/_cat/indices?v
    health status index                  uuid                   pri rep docs.count docs.deleted store.size pri.store.size
    yellow open   zipkin:span-2019-05-31 fCDTcTUHQ-Sk5mgjla53cQ   5   1     197261            0     67.9mb         67.9mb
    yellow open   zipkin:span-2019-05-30 GIKXH6-KRn6PwC9PLiajow   5   1    1334099            0    418.7mb        418.7mb

    查看具体一个

    [root@ecs-1559-0326389 elasticsearch]# curl -XGET http://localhost:9200/[root@ecs-1559-0326389 elasticsearch]# curl -XGET http://localhost:9200/zipkin:span-2019-05-15
    curl: (3) [globbing] error: bad range specification after pos 24
    curl: (3) [globbing] unmatched close brace/bracket at pos 14
    curl: (6) Could not resolve host: curl; Unknown error
    {"zipkin:span-2019-05-15":{"aliases":{},"mappings":{"_default_":{"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}]},"span":{"_source":{"excludes":["_q"]},"dynamic_templates":[{"strings":{"match":"*","match_mapping_type":"string","mapping":{"ignore_above":256,"norms":false,"type":"keyword"}}}],"properties":{"_q":{"type":"keyword"},"annotations":{"type":"object","enabled":false},"duration":{"type":"long"},"id":{"type":"keyword","ignore_above":256},"kind":{"type":"keyword","ignore_above":256},"localEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"name":{"type":"keyword"},"parentId":{"type":"keyword","ignore_above":256},"remoteEndpoint":{"dynamic":"false","properties":{"serviceName":{"type":"keyword"}}},"shared":{"type":"boolean"},"tags":{"type":"object","enabled":false},"timestamp":{"type":"long"},"timestamp_millis":{"type":"date","format":"epoch_millis"},"traceId":{"type":"keyword"}}}},"settings":{"index":{"number_of_shards":"5","provided_name":"zipkin:span-2019-05-15","mapper":{"dynamic":"false"},"creation_date":"1557878400772","requests":{"cache":{"enable":"true"}},"analysis":{"filter":{"traceId_filter":{"type":"pattern_capture","preserve_original":"true","patterns":["([0-9a-f]{1,16})$"]}},"analyzer":{"traceId_analyzer":{"filter":"traceId_filter","type":"custom","tokenizer":"keyword"}}},"number_of_replicas":"1","uuid":"vqVhABYrRhSuJi-7trCVNA","version":{"created":"5061299"}}}}}

    2.删除索引

    [root@ecs-1559-0326389 elasticsearch]# curl -XDELETE http://localhost:9200/zipkin:span-2019-01*
    {"acknowledged":true}
    [root@ecs-1559-0326389 elasticsearch]# curl -XDELETE http://localhost:9200/zipkin:span-2019-02*
    {"acknowledged":true}
    [root@ecs-1559-0326389 elasticsearch]# curl -XDELETE http://localhost:9200/zipkin:span-2019-03*
    {"acknowledged":true}
    [root@ecs-1559-0326389 elasticsearch]# curl -XDELETE http://localhost:9200/zipkin:span-2019-04*
    {"acknowledged":true}
    [root@ecs-1559-0326389 elasticsearch]# curl -XDELETE http://localhost:9200/zipkin:span-2019-05-1*
    {"acknowledged":true}
    [root@ecs-1559-0326389 elasticsearch]# curl -XDELETE http://localhost:9200/zipkin:span-2019-05-2*
    {"acknowledged":true}

     使用通配符,删除所有的索引

    [root@ecs-1559-0326389 elasticsearch]# curl -XDELETE http://localhost:9200/_all
         或
    [root@ecs-1559-0326389 elasticsearch]# curl -XDELETE http://localhost:9200/*
    //    _all ,* 通配所有的索引
    //    通常不建议使用通配符,误删了后果就很严重了,所有的index都被删除了
    //    禁止通配符为了安全起见,可以在elasticsearch.yml配置文件中设置禁用_all和*通配符
    //    action.destructive_requires_name = true
    //    这样就不能使用_all和*了

    3.设置定时删除,下面是保留5天的日志

    30 2 * * * /usr/bin/curl -XDELETE -u elastic:lin http://localhost:9200/*-$(date -d '-5days' +'%Y-%m-%d') >/dev/null 2>&1

    30 2 * * * /usr/bin/curl -XDELETE http://localhost:9200/*-$(date -d '-5days' +'%Y-%m-%d') >/dev/null 2>&1

    [root@ecs-1559-0326389 ~]$ vim del-elasticsearch.sh
    #!/bin/bash
    time=$(date -d '-5days' +'%Y-%m-%d')
    curl -XDELETE -u elastic:lin http://localhost:9200/*-${time}
  • 相关阅读:
    第一轮铁大树洞APP开发冲刺(3)
    记一次寒假小尝试心得体会
    小学四则运算口算练习app---No.7
    小学四则运算口算练习app---No.6
    小学四则运算口算练习app---No.5
    小学四则运算口算练习app---No.4
    小学四则运算口算练习app---No.3
    小学四则运算口算练习app---No.2
    小学四则运算口算练习app
    《需求工程--软件建模与分析》读书笔记03
  • 原文地址:https://www.cnblogs.com/linyouyi/p/10953603.html
Copyright © 2020-2023  润新知