# How much data can be recorded by http.request.body.original

**URL:** <https://discuss.elastic.co/t/how-much-data-can-be-recorded-by-http-request-body-original/279217>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [July 21, 2021, 3:14am UTC](https://discuss.elastic.co/t/how-much-data-can-be-recorded-by-http-request-body-original/279217 "2021-07-21T03:14:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [July 21, 2021, 3:14am UTC](https://discuss.elastic.co/t/how-much-data-can-be-recorded-by-http-request-body-original/279217/1 "2021-07-21T03:14:52Z")

</div>

![changdu](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d6a4b36838750585e65de7bb8ee818f302f69719.png)  
Our backend application uses a lot of parameters, they need to be kept all, I did not find the document mentioned how much length is limited.

We use apm .net agent

---

<div class="post-metadata">

**Author:** ![trentm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trentm/32/77647_2.png) [@trentm](https://discuss.elastic.co/u/trentm)\
**Post date:** [July 21, 2021, 6:44pm UTC](https://discuss.elastic.co/t/how-much-data-can-be-recorded-by-http-request-body-original/279217/2 "2021-07-21T18:44:22Z")

</div>

@wajika I'm not a .NET guy, but from poking through the code it looks like it truncates at 2048 bytes ([apm-agent-dotnet/Consts.cs at master · elastic/apm-agent-dotnet · GitHub](https://github.com/elastic/apm-agent-dotnet/blob/master/src/Elastic.Apm.AspNetCore/Consts.cs#L11)).

It would definitely be helpful to document that at:

> **[HTTP configuration options | APM .NET Agent Reference \[1.11\] | Elastic](https://www.elastic.co/guide/en/apm/agent/dotnet/current/config-http.html#config-capture-body)**

And if you need more than 2KiB of captured body (and are fine with the potential size impact on Elasticsearch storage) then an issue requesting this limit be configurable would be a helpful start.

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [July 22, 2021, 1:35am UTC](https://discuss.elastic.co/t/how-much-data-can-be-recorded-by-http-request-body-original/279217/3 "2021-07-22T01:35:48Z")

</div>

Hi trentm.  
Thank you for your reply.

I have read this document, but the page does not mention how to modify the body length.

How should I submit an issue?

---

<div class="post-metadata">

**Author:** ![trentm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trentm/32/77647_2.png) [@trentm](https://discuss.elastic.co/u/trentm)\
**Post date:** [July 22, 2021, 5:31pm UTC](https://discuss.elastic.co/t/how-much-data-can-be-recorded-by-http-request-body-original/279217/4 "2021-07-22T17:31:11Z")

</div>

@wajika Currently that value is not configurable. Yes, submitting a feature request issue would be the next best step.

---

<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:** [August 12, 2021, 1:31pm UTC](https://discuss.elastic.co/t/how-much-data-can-be-recorded-by-http-request-body-original/279217/5 "2021-08-12T13:31:20Z")

</div>

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