# It is possible to change the bulk\_max\_size and workers on a fleet managed agent?

**URL:** <https://discuss.elastic.co/t/it-is-possible-to-change-the-bulk-max-size-and-workers-on-a-fleet-managed-agent/324380>\
**Category:** Elastic Agent\
**Created:** [February 1, 2023, 2:34am UTC](https://discuss.elastic.co/t/it-is-possible-to-change-the-bulk-max-size-and-workers-on-a-fleet-managed-agent/324380 "2023-02-01T02:34:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 1, 2023, 2:34am UTC](https://discuss.elastic.co/t/it-is-possible-to-change-the-bulk-max-size-and-workers-on-a-fleet-managed-agent/324380/1 "2023-02-01T02:34:19Z")

</div>

Hello,

I'm using Elastic Agent with the AWS Cloudwatch integration to consume some logs, the volume of logs are pretty high and I'm trying to improve the performance of the Elastic Agent.

Filebeat per default uses just `1` worker and has a `bulk_max_size` of `50`, which in my use case is not suited for production, normally on Filebeat I would simple edit the `filebeat.yml` and increase the number of workers and the bulk max size, how can I do the same with the Elastic Agent?

I looked in the fleet interface and didn't find a way to edit those settings, the documentation also is not clear on how to edit those settings on a fleet managed agent.

So, the question is, how can I change the `workers` and `bulk_max_size` for the elasticsearch output on a fleet managed agent?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 1, 2023, 2:43am UTC](https://discuss.elastic.co/t/it-is-possible-to-change-the-bulk-max-size-and-workers-on-a-fleet-managed-agent/324380/2 "2023-02-01T02:43:52Z")

</div>

Just found that it needs to be done manually on the [Advanced Yaml configuration](https://www.elastic.co/guide/en/fleet/8.5/fleet-settings.html#es-output-settings).

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 1, 2023, 2:47am UTC](https://discuss.elastic.co/t/it-is-possible-to-change-the-bulk-max-size-and-workers-on-a-fleet-managed-agent/324380/3 "2023-02-01T02:47:29Z")

</div>

I think those are going to be added to UI / API config sometime soon... but I don't see them yet...

---

<div class="post-metadata">

**Author:** ![IgorMer](https://avatars.discourse-cdn.com/v4/letter/i/f04885/32.png) [@IgorMer](https://discuss.elastic.co/u/IgorMer)\
**Post date:** [February 3, 2023, 3:47pm UTC](https://discuss.elastic.co/t/it-is-possible-to-change-the-bulk-max-size-and-workers-on-a-fleet-managed-agent/324380/4 "2023-02-03T15:47:00Z")

</div>

Hi Leandro,

Would it be possible to post there how exactly should look the section?

Just like this:

`bulk_max_size: 1000`

or with some other section like:

```auto
output.elasticsearch:
   bulk_max_size: 1000

```

Regards,  
Igor

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 3, 2023, 3:50pm UTC](https://discuss.elastic.co/t/it-is-possible-to-change-the-bulk-max-size-and-workers-on-a-fleet-managed-agent/324380/5 "2023-02-03T15:50:33Z")

</div>

You need to edit the output in the Fleet Settings and just add the configs you want in the _Advanced YAML configuration_ box.

For example:

```auto
worker: 2
bulk_max_size: 125

```

---

<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:** [March 3, 2023, 3:51pm UTC](https://discuss.elastic.co/t/it-is-possible-to-change-the-bulk-max-size-and-workers-on-a-fleet-managed-agent/324380/6 "2023-03-03T15:51:20Z")

</div>

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