Version: ELK6.0
metricbeat.json of index-pattern from https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-6.0.0.zip
Command:
curl -H 'Content-Type: application/json' -XPUT 'http://192.168.222.7:9200/_template/metricbeat-*' -d@/path/to/metricbeat.json
Error:
{"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: index patterns are missing;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: index patterns are missing;"},"status":400}