How to to change string to object when re-indexing?

Hi, using Elastic 6.4.2

I have a document like so...

{
    "host": "foo.bar.com"
}

I would like to re-index it to...

{
    "host": {
        "name": "foo.bar.com"
    }
}

I'm guessing I need to use re-index api with ingest pipeline and which processor?

Thanks

https://www.elastic.co/guide/en/elasticsearch/reference/current/rename-processor.html

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