# Max\_partition\_fetch\_bytes not work

**URL:** <https://discuss.elastic.co/t/max-partition-fetch-bytes-not-work/101814>\
**Category:** Logstash\
**Created:** [September 26, 2017, 9:44am UTC](https://discuss.elastic.co/t/max-partition-fetch-bytes-not-work/101814 "2017-09-26T09:44:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![3629decca366f3ccc233](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/3629decca366f3ccc233/32/22518_2.png) [@3629decca366f3ccc233](https://discuss.elastic.co/u/3629decca366f3ccc233)\
**Post date:** [September 26, 2017, 9:44am UTC](https://discuss.elastic.co/t/max-partition-fetch-bytes-not-work/101814/1 "2017-09-26T09:44:37Z")

</div>

max\_partition\_fetch\_bytes not work ， i have big message in kafka (abount 150000b)。 i want to limit  
to 500, and print it . i find max\_partition\_fetch\_bytes config ,but it not work, it print is also big message

config

input {  
kafka { bootstrap\_servers =\> ["rizhi.zookeeper1:9092"]  
group\_id =\> "logstash"  
codec =\> "json"  
topics =\> ["rizhi\_notice"]  
auto\_offset\_reset =\> "latest"  
decorate\_events =\> true  
max\_partition\_fetch\_bytes =\> "1024"  
send\_buffer\_bytes =\> "1024"  
consumer\_threads =\> 1  
}  
}

kafka data：

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f430b15a0138cd86870b74340e8437063a41a7c7.png)

---

<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 24, 2017, 9:44am UTC](https://discuss.elastic.co/t/max-partition-fetch-bytes-not-work/101814/2 "2017-10-24T09:44:39Z")

</div>

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