<p>In a kuberenetes cluster, when pushing the data of jaeger-tracing to elasticsearch i am getting the below error in the jaeger-tracing-collector, I do not have any filter like logstash/filebeat in between. The jaeger data is direclty pushed into elasticsearch. I am very new to elasticsearch and related things, any help would be greatly appreciated..</p>
<p>Thanks in advance...</p>
<p>Error :</p>
<pre><code>{
  &quot;level&quot;: &quot;error&quot;,
  &quot;ts&quot;: 1656982524.1294773,
  &quot;caller&quot;: &quot;config/config.go:137&quot;,
  &quot;msg&quot;: &quot;Elasticsearch part of bulk request failed&quot;,
  &quot;map-key&quot;: &quot;index&quot;,
  &quot;response&quot;: {
    &quot;_index&quot;: &quot;jaeger-span-2022-07-05&quot;,
    &quot;_type&quot;: &quot;_doc&quot;,
    &quot;_id&quot;: &quot;9EHay4EBv4T2qdA80Ei7&quot;,
    &quot;status&quot;: 400,
    &quot;error&quot;: {
      &quot;type&quot;: &quot;mapper_parsing_exception&quot;,
      &quot;reason&quot;: &quot;failed to parse field [duration] of type [long] in document with id '9EHay4EBv4T2qdA80Ei7'. Preview of field's value: '18446744073709550616'&quot;,
      &quot;caused_by&quot;: {
        &quot;reason&quot;: &quot;Numeric value (18446744073709550616) out of range of long (-9223372036854775808 - 9223372036854775807)n at [Source: (ByteArrayInputStream); line: 1, column: 199]&quot;,
        &quot;type&quot;: &quot;i_o_exception&quot;
      }
    }
  },
  &quot;stacktrace&quot;: &quot;github.com/jaegertracing/jaeger/pkg/es/config.(*Configuration).NewClient.func2\\n\\tgithub.com/jaegertracing/jaeger/pkg/es/config/config.go:137\\ngithub.com/olivere/elastic.(*bulkWorker).commit\\n\\tgithub.com/olivere/elastic@v6.2.27+incompatible/bulk_processor.go:588\\ngithub.com/olivere/elastic.(*bulkWorker).work\\ntgithub.com/olivere/elastic@v6.2.27+incompatible/bulk_processor.go:501&quot;
}

</code></pre>
<p>Jaeger version : 1.21.0
Elasticsearch version : 7.17.5</p>

AKSHAY KADAM
<h1>Tldr;</h1>
<p>It seems you are out of bound as per the error message</p>
<blockquote>
<p>&quot;reason&quot;: &quot;Numeric value (18446744073709550616) out of range of long (-9223372036854775808 - 9223372036854775807)n at [Source: (ByteArrayInputStream); line: 1, column: 199]&quot;</p>
</blockquote>
<h1>Solution</h1>
<p>As <a href="https://stackoverflow.com/users/4604579/val">@Val</a> mentioned in the comment, having your mapping would help.</p>
<p>First of all to store the value <code>18446744073709550616</code> you need to choose either<a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html" rel="nofollow noreferrer">from this list</a>:</p>
<ul>
<li>float</li>
<li>double</li>
<li>unsigned_long</li>
</ul>
<p>Then when creating your index, you set the type for the field:</p>
<pre class="lang-json prettyprint-override"><code>PUT 74388060/
{
  &quot;mappings&quot;: {
    &quot;properties&quot;: {
      &quot;big_number&quot;: {
        &quot;type&quot;: &quot;float&quot;
      }
    }
  }
}
</code></pre>
<p>and then</p>
<pre class="lang-json prettyprint-override"><code>POST /74388060/_doc/
{
  &quot;big_number&quot;: &quot;18446744073709550616&quot;
}
</code></pre>
<p>And you should be out of the woods.</p>
