命令样例如下:
curl -X GET "https://localhost:9200/_cat/templates?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
name index_patterns order version composed_of
.monitoring-kibana [.monitoring-kibana-7-*] 0 8080099
.monitoring-es [.monitoring-es-7-*] 0 8080099
.monitoring-beats [.monitoring-beats-7-*] 0 8080099
.monitoring-alerts-7 [.monitoring-alerts-7] 0 8080099
.monitoring-logstash [.monitoring-logstash-7-*] 0 8080099
.kibana-reporting [.kibana-reporting*] 100 3 []
.monitoring-ent-search-mb [.monitoring-ent-search-8-*] 0 8000108 []
behavioral_analytics-events-default [behavioral_analytics-events-*] 100 2 [behavioral_analytics-events-settings, behavioral_analytics-events-mappings]
.fleet-fileds-fromhost-meta [.fleet-fileds-fromhost-meta-*] 200 1 []
.fleet-fileds-tohost-meta [.fleet-fileds-tohost-meta-*] 200 1 []
elastic-connectors [.elastic-connectors-v1] 100 1 [elastic-connectors-settings, elastic-connectors-mappings]
.fleet-fileds-fromhost-data [.fleet-fileds-fromhost-data-*] 200 1 []
elastic-connectors-sync-jobs [.elastic-connectors-sync-jobs-v1] 100 1 [elastic-connectors-settings, elastic-connectors-sync-jobs-mappings]
.monitoring-es-mb [.monitoring-es-8-*] 0 8000108 []
.slm-history [.slm-history-5*] 2147483647 5 []
logs [logs-*-*] 100 3 [logs-mappings, logs-settings, logs@custom, ecs@dynamic_templates]
.watch-history-16 [.watcher-history-16*] 2147483647 16 []
.monitoring-beats-mb [.monitoring-beats-8-*] 0 8000108 []
.monitoring-kibana-mb [.monitoring-kibana-8-*] 0 8000108 []
synthetics [synthetics-*-*] 100 3 [synthetics-mappings, data-streams-mappings, synthetics-settings]
.ml-state [.ml-state*] 2147483647 10000003 []
ilm-history [ilm-history-5*] 2147483647 5 []
.fleet-fileds-tohost-data [.fleet-fileds-tohost-data-*] 200 1 []
.monitoring-logstash-mb [.monitoring-logstash-8-*] 0 8000108 []
search-acl-filter [.search-acl-filter-*] 110 1 []
.ml-anomalies- [.ml-anomalies-*] 2147483647 10000003 []
metrics [metrics-*-*] 100 3 [metrics-mappings, data-streams-mappings, metrics-settings]
.ml-notifications-000002 [.ml-notifications-000002] 2147483647 10000003 []
.deprecation-indexing-template [.logs-deprecation.*] 1000 1 [.deprecation-indexing-mappings, .deprecation-indexing-settings]
.ml-stats [.ml-stats-*] 2147483647 10000003 []
查看帮助,命令如下:
curl -X GET "https://localhost:9200/_cat/templates?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"
执行结果输出如下:
name | n | template name
index_patterns | t | template index patterns
order | o,p | template application order/priority number
version | v | version
composed_of | c | component templates comprising index template
相关资料
- cat templates API
- Index templates
- Index modules
- Mapping
- API conventions
- HTTP accept header