Integer cannot be casted to Long

Good afternoon,

I'm testing a pipeline and i keep recieving this error:

{
"error": {
"root_cause": [
{
"type": "class_cast_exception",
"reason": "java.lang.Integer cannot be cast to java.lang.Long"
}
],
"type": "class_cast_exception",
"reason": "java.lang.Integer cannot be cast to java.lang.Long"
},
"status": 500
}

My pipeline looks like this:

POST _ingest/pipeline/_simulate
{
"pipeline": {
"description": "Some pipeline",
"processors": [
{
"grok": {
"field": "message",
"patterns": [""""%{DATE:date}","%{INT:in_bytes_s}","%{INT:out_bytes_s}","%{INT:bw}"""]
}
},
{
"remove": {
"field": "message"
}
}
]
},
"docs": [
{
"_index": "filebeat-2018.08.07",
"_type": "doc",
"_id": "USrkFWUBvYlrqTdwr60G",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2018-08-07T19:37:13.793Z",
"beat": {
"name": "name",
"hostname": "hostname",
"version": "6.0.0"
},
"source": "path-to-file",
"offset": 3258,
"message": """ "08/03/2018","4255.2169029019915","34988.889875923735","10000000000" """,
"prospector": {
"type": "log"
}
},
"fields": {
"@timestamp": [
"2018-08-07T19:37:13.793Z"
]
},
"sort": [
1533670633793
]
}
]
}

The problem is with the _version field, when i delete it from the sample doc it works just fine.

Can someone help me with this please?

Many thanks in advance.

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