Elasticsearch 6.5 Ingest node _pipeline convert processors field cannot support array list


(hope) #1

pipeline.json

    {
        "convert" : {
            "field" : ["flowid", "qq_wechat_id", "curr_time"],
            "type": "long"
        }
    },

when i create _ingest/pipeline/accountlog-pipeline, it show "field property isn't string", but 'Document' https://www.elastic.co/guide/en/elasticsearch/reference/current/convert-processor.html

Converts a field in the currently ingested document to a different type, such as converting a string to an integer. If the field value is an array, all members will be converted.

curl --connect-timeout 2 -XPUT "http://10.195.17.47:9200/_ingest/pipeline/accountlog-pipeline" -d@pipeline.json -H "Content-Type:application/json"
{
"error": {
"header": {
"processor_type": "convert",
"property_name": "field"
},
"reason": "[field] property isn't a string, but of type [java.util.ArrayList]",
"root_cause": [
{
"header": {
"processor_type": "convert",
"property_name": "field"
},
"reason": "[field] property isn't a string, but of type [java.util.ArrayList]",
"type": "parse_exception"
}
],
"type": "parse_exception"
},
"status": 400
}


(hope) #2

maybe i am wrong.
[field] property needs a string. the string can be include an Arraylist
i 'll try it in another way .