# Data sent through APM server is not injecting number fields

**URL:** <https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389>\
**Category:** APM\
**Tags:** java\
**Created:** [June 16, 2022, 11:02am UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389 "2022-06-16T11:02:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [June 16, 2022, 11:02am UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389/1 "2022-06-16T11:02:01Z")

</div>

Kibana version : 7.17

Elasticsearch version : 7.17

APM Server version : 7.17

APM Agent language and version : java 1.8

Fresh install or upgraded from other version? fresh install

Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc. :-no

I have several fields that I have been using for the previous versions of Elasticsearch . Uptil version 7.17.4 I don't see this issue. This is specific to version 7.17.7.

I am sending labels through APM server and they have fields of type number , double etc. But these fields are not been pushed to Elasticsearch . Only the APM label fields that has string as value is pushed to elastic. Those APM labels that had number values are not even coming to the elastic side. If I pass it as a string then my aggrgation wont work as I need to be number format and not keyword/text

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [June 16, 2022, 12:12pm UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389/2 "2022-06-16T12:12:55Z")

</div>

Hi @anjana1 ,

Beyond the apm-server (and stack) version change, did the APM Java agent remained the same here ?  
Can you clarify how and where are you setting the custom labels here ? Is that through the Java agent configuration, apm-server configuration or using the agent public API ?

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [June 16, 2022, 12:54pm UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389/3 "2022-06-16T12:54:56Z")

</div>

AFAIK 7.17.4 the latest 7.17 stack release version. What is 7.17.7?

---

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [June 16, 2022, 2:28pm UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389/4 "2022-06-16T14:28:06Z")

</div>

Yes Apm agent remained same.. may be a much older version.I am pushing data from a java application. My agent is elastic-apm-agent-1.9.0.

So when I do a discover in 7.17.0 my field labels.Amount is shown where as 7.17.4 does not show my label . If I convert the label to String from java and send, it appears but no use as its of type keyword.

I can may be create a mapping but it is having a conflict between keyword and double. None of these issues are there in 7.17.0

---

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [June 16, 2022, 2:28pm UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389/5 "2022-06-16T14:28:37Z")

</div>

Sorry that's 7.17.4..

---

<div class="post-metadata">

**Author:** ![anjana1](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@anjana1](https://discuss.elastic.co/u/anjana1)\
**Post date:** [June 16, 2022, 2:58pm UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389/6 "2022-06-16T14:58:55Z")

</div>

So basically 7.17.0 works without issue and 7.17.4 has issue ..sorry for confusion

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [June 19, 2022, 9:22am UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389/7 "2022-06-19T09:22:28Z")

</div>

You are using a pretty old agent. Please try the latest agent and see if the issue gets resolved.  
For example, a related issue had been fixed in [1.28.0](https://www.elastic.co/guide/en/apm/agent/java/current/release-notes-1.x.html#_bug_fixes_11).  
I just verified a numeric label is properly sent and stored using latest agent and 8.2 stack, so I expect it to work properly with 7.17.4 as well.

---

<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:** [July 10, 2022, 5:22am UTC](https://discuss.elastic.co/t/data-sent-through-apm-server-is-not-injecting-number-fields/307389/8 "2022-07-10T05:22:47Z")

</div>

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