# Filebeat no more working - Can not index event (status=400)

**URL:** https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227
**Category:** Beats
**Tags:** filebeat
**Created:** [September 22, 2016, 9:56am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227 "2016-09-22T09:56:07Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![toasti](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@toasti](https://discuss.elastic.co/u/toasti)
#### Post date: [September 22, 2016, 9:56am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/1 "2016-09-22T09:56:07Z")

</div>

Hello there,

Since today at 2am my filebat was working well, now I got no more data and the following error messages:

```
2016-09-22T11:53:04+02:00 WARN Can not index event (status=400): "MapperParsingException[mapping [_default_]]; nested: MapperParsingException[No handler for type [keyword] declared on field [hostname]]; "
2016-09-22T11:53:26+02:00 INFO Non-zero metrics in the last 30s: libbeat.es.publish.read_bytes=873 registar.states.total=2 filebeat.harvester.started=1 libbeat.es.publish.write_bytes=1411     

libbeat.es.call_count.PublishEvents=1 filebeat.harvester.running=1 publish.events=2 registrar.state_updates=2 libbeat.es.published_and_acked_events=1 libbeat.publisher.published_events=1 filebeat.harvester.open_files=1

```

Don't know what happen - do you have an idea?

Thank you!

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [September 22, 2016, 11:01am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/2 "2016-09-22T11:01:51Z")

</div>

It seems like the mapping on your elasticsearch instance changed. Do you have the filebeat index template loaded on your elasticsearch instance?

---

<div class="post-metadata">

### Author: ![toasti](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@toasti](https://discuss.elastic.co/u/toasti)
#### Post date: [September 22, 2016, 11:28am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/3 "2016-09-22T11:28:40Z")

</div>

Sorry, but I don't understand what do you mean exactly. I am using it since Monday and for me it's still very complex.

Do you mean "filebeat.template.json" and "filebeat.template-es2x.json"?

What can I do or check to find the failure?

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [September 22, 2016, 11:39am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/4 "2016-09-22T11:39:06Z")

</div>

Did you follow the getting started guide and applied this step here? [https://www.elastic.co/guide/en/beats/filebeat/1.3/filebeat-template.html](https://www.elastic.co/guide/en/beats/filebeat/1.3/filebeat-template.html) Which version of filebeat are you using?

---

<div class="post-metadata">

### Author: ![toasti](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@toasti](https://discuss.elastic.co/u/toasti)
#### Post date: [September 22, 2016, 11:47am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/5 "2016-09-22T11:47:55Z")

</div>

Yes, I did and it already worked.

I am using version filebeat-5.0.0-alpha5-windows-x86\_64.

Do you mean uninstall and reinstall works? In the debug log I can see that filebeat send logs, but afterwards the error message above comes up.

I tried also to delete the index of filebeat and create it again. No change, unable to fetch mapping.

---

<div class="post-metadata">

### Author: ![toasti](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@toasti](https://discuss.elastic.co/u/toasti)
#### Post date: [September 22, 2016, 12:56pm UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/6 "2016-09-22T12:56:47Z")

</div>

I solved it, hope that is correct now:

Based on this post from Andrew I did the same with filebeat, also using the filebeat.yml from version 1.3.1:

> [@Issue shipping Winlogbeat 5.x to Elasticsearch 2.x](https://discuss.elastic.co/t/issue-shipping-winlogbeat-5-x-to-elasticsearch-2-x/47301/6):
>
> It looks like you are using the Winlogbeat 5.0.0-alpha1 with Elasticsearch 1.x or 2.x? There is an incompatibility with the winlogbeat.template.json index template provided in Winlogbeat v5 and earlier versions of Elasticsearch because the template uses the text keyword that was introduced in ES v5. To continue to use Winlogbeat 5.x with ES 1.x or 2.x you'll need to grab the index template provided in Winlogbeat 1.x and install it to ES. Cleanup: Stop Winlogbeat. Delete the .winlogbeat.yml r…

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [September 23, 2016, 6:24am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/7 "2016-09-23T06:24:09Z")

</div>

Filebeat 5.x automatically installs the template and picks the right one for the elasticsearch version. I think what solved the problem is that you removed the index template (not only the index).

Thanks for sharing your solution.

---

<div class="post-metadata">

### Author: ![toasti](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@toasti](https://discuss.elastic.co/u/toasti)
#### Post date: [September 23, 2016, 6:35am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/8 "2016-09-23T06:35:31Z")

</div>

I did a test and installed the 5.0 template again - not working.  
Copied back the 1.3.1 template - working.

Is my Elasticsearch version not the right one for 5.0? It's 1.7.3.

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [September 23, 2016, 1:50pm UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/9 "2016-09-23T13:50:31Z")

</div>

For 1.x and 2.x of elasticsearch, you need the 2.x template. Only for 5.x the 5.0 template is needed.

---

<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: [October 13, 2016, 9:56am UTC](https://discuss.elastic.co/t/filebeat-no-more-working-can-not-index-event-status-400/61227/10 "2016-10-13T09:56:33Z")

</div>

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