ElasticSearch之cat component templates API

命令样例如下:

curl -X GET "https://localhost:9200/_cat/component_templates?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

name                                  version alias_count mapping_count settings_count metadata_count included_in
elastic-connectors-sync-jobs-mappings 1       1           19            0              2              [elastic-connectors-sync-jobs]
metrics-mappings                      3       0           3             0              2              [metrics]
behavioral_analytics-events-mappings  2       0           10            0              2              [behavioral_analytics-events-default]
elastic-connectors-mappings           1       1           31            0              2              [elastic-connectors]
synthetics-mappings                   3       0           1             0              2              [synthetics]
ecs@dynamic_templates                 3       0           13            0              2              [logs]
.deprecation-indexing-settings        1       0           0             5              2              [.deprecation-indexing-template]
synthetics-settings                   3       0           0             2              2              [synthetics]
logs-mappings                         3       0           5             0              2              [logs]
elastic-connectors-settings           1       0           0             4              2              [elastic-connectors-sync-jobs, elastic-connectors]
elastic-connectors-sync-jobs-settings 1       0           0             4              2              []
.deprecation-indexing-mappings        1       0           7             0              2              [.deprecation-indexing-template]
behavioral_analytics-events-settings  2       0           0             8              2              [behavioral_analytics-events-default]
metrics-settings                      3       0           0             3              2              [metrics]
logs-settings                         3       0           0             5              2              [logs]
metrics-tsdb-settings                 3       0           0             2              2              []
data-streams-mappings                 3       0           8             0              2              [synthetics, metrics]

查看帮助,命令如下:

curl -X GET "https://localhost:9200/_cat/component_templates?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

name           | n  | component template name
version        | v  | version
alias_count    | a  | alias count
mapping_count  | m  | mapping count
settings_count | s  | settings count
metadata_count | me | metadata count
included_in    | i  | included in

相关资料

  • cat component templates API
  • get component template API
  • component templates
  • index templates
  • mappings
  • settings
  • aliases
  • HTTP accept header

你可能感兴趣的:(elasticsearch,linux)