<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Numerical Precision in Metrics in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760041#M120426</link>
    <description>&lt;P&gt;I suspect it's because the number itself has 15+6 digits and the limit applies to the entire string, not just the right hand side. You can see the effect of the number of digits here in this search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="{\"id\": \"ABC\", \"name\": \"lukas\", \"timestamp\": 1775567475, \"payload\": 372998479107735.188677, \"status\": \"ok\"}"
| spath
| eval len=len(payload)
| foreach 22 21 20 19 18 17 16 15 14 [ eval payload_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=substr(payload, len - &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; + 1) ]
| fields payload_*
| transpose 0 column_name=length
| where match(length, "payload")
| rename "row 1" as payload
| foreach 1 10 100 1000 10000 [ eval mul_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=round(payload * &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;, 6) ]&lt;/LI-CODE&gt;&lt;P&gt;This creates a number of substrings of your original and then multiplies them by 1, 10, 100, 1000. You can clearly see that multiply by 1 works when the total string length is 16 or below, but above, you start to see loss of precision&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowesmana_0-1775688483995.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/41909i7B3AD4DC076B5A5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowesmana_0-1775688483995.png" alt="bowesmana_0-1775688483995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2026 22:48:18 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2026-04-08T22:48:18Z</dc:date>
    <item>
      <title>Numerical Precision in Metrics</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760019#M120416</link>
      <description>&lt;P&gt;I have data of the following structure in Kafka.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"id": "ABC", "name": "lukas", "timestamp": 1775567475, "payload": 372998479107735.188677, "status": "ok"}&lt;/LI-CODE&gt;&lt;P&gt;I get it into Splunk using the log2metric_json sourcetype and a HEC Connector via &lt;A href="https://help.splunk.com/en/splunk-cloud-platform/get-data-in/splunk-connect-for-kafka/2.2/overview/splunk-connect-for-kafka" target="_self"&gt;Splunk Connect for Kafka.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When reading the docs about metrices i read about metric indices that it&amp;nbsp;&lt;A href="https://help.splunk.com/en/splunk-enterprise/get-data-in/metrics/9.3/introduction-to-metrics/get-started-with-metrics" target="_self"&gt;supports precision between 15 and 17 decimal digits&lt;/A&gt;. I only seem to be getting 2 however and I can not find anything in props or limits.conf regarding this. Even using "| mpreview" I can verify this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 14:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760019#M120416</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2026-04-08T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Precision in Metrics</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760023#M120418</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258544"&gt;@duesser&lt;/a&gt;&amp;nbsp;I guess this has nothing to do with props or limits configuration. Potentially, Add-on could be truncating it. This can be identified from debug logs for the add-on. If not enabled, you could enable it and troubleshoot it further. Particularly, you may look for the serialization errors which could point to this issue. If confirmed, please report this as bug to Splunk itself via support case as this can be fixed in the upcoming version releases.&lt;/P&gt;&lt;P&gt;Ref:&amp;nbsp;&lt;A href="https://help.splunk.com/en/data-management/integrate-data-with-add-ons/splunk-connect-for-kafka/2.1/troubleshooting/troubleshoot-issues-with-splunk-connect-for-kafka" target="_blank" rel="noopener"&gt;Troubleshoot issues with Splunk Connect for Kafka | Splunk Enterprise, Splunk Cloud Platform (last updated 2025-07-15T17:26:43.575Z)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post addressed your question, you can:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Give it&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;karma&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to show appreciation&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Mark it as the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;solution&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;if it solved your issue&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Add a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;comment&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;if you’d like more details&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":pencil:"&gt;✏️&lt;/span&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Acknowledging helpful answers keeps the community strong and motivates contributors to continue sharing their expertise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 14:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760023#M120418</guid>
      <dc:creator>kknairr</dc:creator>
      <dc:date>2026-04-08T14:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Precision in Metrics</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760041#M120426</link>
      <description>&lt;P&gt;I suspect it's because the number itself has 15+6 digits and the limit applies to the entire string, not just the right hand side. You can see the effect of the number of digits here in this search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="{\"id\": \"ABC\", \"name\": \"lukas\", \"timestamp\": 1775567475, \"payload\": 372998479107735.188677, \"status\": \"ok\"}"
| spath
| eval len=len(payload)
| foreach 22 21 20 19 18 17 16 15 14 [ eval payload_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=substr(payload, len - &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; + 1) ]
| fields payload_*
| transpose 0 column_name=length
| where match(length, "payload")
| rename "row 1" as payload
| foreach 1 10 100 1000 10000 [ eval mul_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=round(payload * &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;, 6) ]&lt;/LI-CODE&gt;&lt;P&gt;This creates a number of substrings of your original and then multiplies them by 1, 10, 100, 1000. You can clearly see that multiply by 1 works when the total string length is 16 or below, but above, you start to see loss of precision&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowesmana_0-1775688483995.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/41909i7B3AD4DC076B5A5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowesmana_0-1775688483995.png" alt="bowesmana_0-1775688483995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 22:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760041#M120426</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2026-04-08T22:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Precision in Metrics</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760048#M120427</link>
      <description>&lt;P&gt;I can reproduce the finding by running your query on my instance. I can also confirm, that if i force my data to be "shorter" I do observe higher floating point precission.&lt;/P&gt;&lt;P&gt;Do you also happen to know the root cause and a solution?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 06:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760048#M120427</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2026-04-09T06:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Precision in Metrics</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760049#M120428</link>
      <description>&lt;P&gt;Researching the other answer i played around with different length numbers and was able to get data with higher precission into splunk. Also i did search through the logs and did not find any serialization issues. Thank you for the input though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 06:08:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760049#M120428</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2026-04-09T06:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Precision in Metrics</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760050#M120429</link>
      <description>&lt;P&gt;I recall some info on the Splunk Slack channels referring to the max number supported as 2^53 - 1 - This is IEEE 754 floating point&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/IEEE_754" target="_blank"&gt;https://en.wikipedia.org/wiki/IEEE_754&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and there is a comment here in item 10&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.splunk.com/en/splunk-enterprise/search/spl-search-reference/9.0/search-commands/eval#10.-rounding-with-values-outside-of-the-range-of-supported-values-0" target="_blank"&gt;https://help.splunk.com/en/splunk-enterprise/search/spl-search-reference/9.0/search-commands/eval#10.-rounding-with-values-outside-of-the-range-of-supported-values-0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So, it's very likely your issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is it you need such precision on such large numbers and are the numbers to the right of the DP significant in the context of the payload value itself?&lt;/P&gt;&lt;P&gt;I think your solution needs to be a modification of the value in whatever form is practical.&lt;/P&gt;&lt;P&gt;The Slack conversation is here&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkcommunity.slack.com/archives/CD8B6F65Q/p1660068986075899" target="_blank"&gt;https://splunkcommunity.slack.com/archives/CD8B6F65Q/p1660068986075899&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and there are some possibly explanations there.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2026 06:11:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760050#M120429</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2026-04-09T06:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Precision in Metrics</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760120#M120434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258544"&gt;@duesser&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The links in the other responses may cover the detail, but in short,&amp;nbsp;372998479107735.188677 is outside the precision of a double-precision floating point value when converted to binary:&lt;/P&gt;&lt;P&gt;372998479107735.188677&lt;/P&gt;&lt;P&gt;to binary =&amp;gt;&lt;/P&gt;&lt;P&gt;0100001011110101001100111101011110011101100101010110100101110011&lt;/P&gt;&lt;P&gt;back to decimal =&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;372998479107735.1875&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The easiest way to maintain precision is probably to store the value as a string and then at search time, perform calculations using custom search commands that reference, e.g., Python decimal or gmpy modules.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 17:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760120#M120434</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2026-04-12T17:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical Precision in Metrics</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760130#M120435</link>
      <description>&lt;P&gt;Thanks for the reply, this is a very helpful response. Unfortunately, the data is coming in as a metric, so the first command will have to be mstats, where we will loose the precission. I will accept as the correct solution anyways, since i guess this would be the only way to actually handle numbers of such precission.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 06:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Numerical-Precision-in-Metrics/m-p/760130#M120435</guid>
      <dc:creator>duesser</dc:creator>
      <dc:date>2026-04-13T06:14:47Z</dc:date>
    </item>
  </channel>
</rss>

