# Error : panic: runtime error: makeslice: len out of range

**URL:** https://discuss.elastic.co/t/error-panic-runtime-error-makeslice-len-out-of-range/229840
**Category:** Beats
**Tags:** filebeat
**Created:** [April 26, 2020, 12:26pm UTC](https://discuss.elastic.co/t/error-panic-runtime-error-makeslice-len-out-of-range/229840 "2020-04-26T12:26:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JavaDeveloper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javadeveloper/32/67144_2.png) [@JavaDeveloper](https://discuss.elastic.co/u/JavaDeveloper)
#### Post date: [April 26, 2020, 12:26pm UTC](https://discuss.elastic.co/t/error-panic-runtime-error-makeslice-len-out-of-range/229840/1 "2020-04-26T12:26:26Z")

</div>

Hello.  
I'm using one of the community filebeats called [mqttbeat](https://github.com/nathan-K-/mqttbeat/) written by Go language.  
I configured it, so that it connects to my own mqtt broker and ships data to the elasticsearch properly.  
However, after 1 hour, this filebeat was disconnected due to the following reason:

```auto
panic: runtime error: makeslice: len out of range

```

My broker was sending nearly 500 messages per second to this mqttFilebeat.  
Sorry! I know this issue is not related to the official Elastic stack. but I do not know how do I have to solve it.  
On the other hand, I need it but the official MQTT input of the Elastic Filebeat is not published yet.  
How can I solve the above problem?

---

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [April 27, 2020, 2:56pm UTC](https://discuss.elastic.co/t/error-panic-runtime-error-makeslice-len-out-of-range/229840/2 "2020-04-27T14:56:41Z")

</div>

Could you please share the whole trace and more logs for the Beat?

---

<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: [May 25, 2020, 3:01pm UTC](https://discuss.elastic.co/t/error-panic-runtime-error-makeslice-len-out-of-range/229840/3 "2020-05-25T15:01:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
