# Not able to create an index of Metric beat in elasticsearch

**URL:** <https://discuss.elastic.co/t/not-able-to-create-an-index-of-metric-beat-in-elasticsearch/54648>\
**Category:** Beats\
**Created:** [July 4, 2016, 12:20pm UTC](https://discuss.elastic.co/t/not-able-to-create-an-index-of-metric-beat-in-elasticsearch/54648 "2016-07-04T12:20:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2016, 12:20pm UTC](https://discuss.elastic.co/t/not-able-to-create-an-index-of-metric-beat-in-elasticsearch/54648/1 "2016-07-04T12:20:48Z")

</div>

Hi Experts,

I have

metricbeat-5.0.0-alpha4-linux-x86\_64  
elasticsearch-2.3.3  
kibana-4.5.1-linux-x64  
Ubuntu

So as suggested by the guide I have downloaded and configure metricbeat but unfortunately I am not able to create an index in elasticsearch . I am getting an error while firing command

> ./metricbeat" -e -c metricbeat.yml -d "publish"

Error

> 2016/07/04 12:13:11.740368 output.go:108: DBG output worker: publish 50 events  
> 2016/07/04 12:13:11.751419 client.go:344: WARN Can not index event (status=400): {"type":"mapper\_parsing\_exception","reason":"Failed to parse mapping [_default_]: No handler for type [keyword] declared on field [hostname]","caused\_by":{"type":"mapper\_parsing\_exception","reason":"No handler for type [keyword] declared on field [hostname]"}

My metricbeat.yml is like

```
- module: system
  metricsets:
    - cpu
    - core
    - diskio
    - filesystem
    - memory
    - network
    - process
  enabled: true
  period: 10s
  processes: ['.*']
  cpu_ticks: false

output.elasticsearch:
  hosts: ["ESIP:9200"]
  template.name: "metricbeat"
  template.path: "metricbeat.template.json"
  template.overwrite: false

```

Please guide me what I am missing ?

Thanks  
VG

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2016, 1:30pm UTC](https://discuss.elastic.co/t/not-able-to-create-an-index-of-metric-beat-in-elasticsearch/54648/2 "2016-07-04T13:30:28Z")

</div>

I got this , since template has been already created so i have to delete it , now it works.

---

<div class="post-metadata">

**Author:** ![michbsd](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@michbsd](https://discuss.elastic.co/u/michbsd)\
**Post date:** [July 4, 2016, 1:54pm UTC](https://discuss.elastic.co/t/not-able-to-create-an-index-of-metric-beat-in-elasticsearch/54648/3 "2016-07-04T13:54:50Z")

</div>

Also... keep in mind for ES 2.x the template "metricbeat.template-es2x.json" should be used

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [July 4, 2016, 3:05pm UTC](https://discuss.elastic.co/t/not-able-to-create-an-index-of-metric-beat-in-elasticsearch/54648/4 "2016-07-04T15:05:58Z")

</div>

Yes I was using metricbeat.template-es2x.json template only , thank you @michbsd

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 25, 2016, 12:21pm UTC](https://discuss.elastic.co/t/not-able-to-create-an-index-of-metric-beat-in-elasticsearch/54648/5 "2016-07-25T12:21:16Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
