elasticsearch: cannot be converted to Long without data loss

Viewed 110

I have this message:

{
          "random" : 1634334912,
          "alert" : {
            "app_key" : "abc",
            "host" : "prod-mongo-1",
            "check" : "heap_size",
            "status" : "warning",
            "something": {
              "a": "b"
            }
            "number": <Value>

          }
}

The value of number can be either 1.572322062646, 1572322062646 or '1.57232116125E9' (not the exact value, rather the type)

Do I have a way to mitigate this error using dynamic templates?

      "reason" : "1.572322062646 cannot be converted to Long without data loss"
1 Answers
Related