I'm fighting against an ingest pipeline which might not work.
The solution must be simple but I lost track.
The following simulation don't work. The Dev Tools in Kibana throws a "bad string" error. But why?
POST _ingest/pipeline/lasernet/_simulate
{
"docs": [
{
"_source": {SAG-DFO-015;2019-04-10 13:18:45.846;Pass-Through - Destination selection;10;6368;1052522;SAG_DFO_015_DESTINATION_SELECTION_E6823FFA_3E0B_4E26_98C9_A62B4F11B6F4;Applying pre-processing module jobinfos to SAG_DFO_015_DESTINATION_SELECTION_E6823FFA_3E0B_4E26_98C9_A62B4F11B6F4}
}
]
}
When I add a " character in "_source":{" the bad string error disappear but get the below error...
POST _ingest/pipeline/lasernet/_simulate
{
"docs": [
{
"_source": {"SAG-DFO-015;2019-04-10 13:18:45.846;Pass-Through - Destination selection;10;6368;1052522;SAG_DFO_015_DESTINATION_SELECTION_E6823FFA_3E0B_4E26_98C9_A62B4F11B6F4;Applying pre-processing module jobinfos to SAG_DFO_015_DESTINATION_SELECTION_E6823FFA_3E0B_4E26_98C9_A62B4F11B6F4}
}
]
}
{
"error": {
"root_cause": [
{
"type": "parse_exception",
"reason": "Failed to parse content to map"
}
],
"type": "parse_exception",
"reason": "Failed to parse content to map",
"caused_by": {
"type": "json_parse_exception",
"reason": "Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in name\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@a36d6b2; line: 4, column: 295]"
}
},
"status": 400
}