# Ingest Node - Convert Processor

**URL:** <https://discuss.elastic.co/t/ingest-node-convert-processor/66954>\
**Category:** Elasticsearch\
**Created:** [November 23, 2016, 8:32am UTC](https://discuss.elastic.co/t/ingest-node-convert-processor/66954 "2016-11-23T08:32:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoarSvensson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joarsvensson/32/8740_2.png) [@JoarSvensson](https://discuss.elastic.co/u/JoarSvensson)\
**Post date:** [November 23, 2016, 8:32am UTC](https://discuss.elastic.co/t/ingest-node-convert-processor/66954/1 "2016-11-23T08:32:01Z")

</div>

I'm having difficulties using the Convert Processor on nested fields. The fields seems to be skipped in the pipeline. Can't find any information in the docs regarding if it's supported or not.

Running ES 5.0.1, any hints on what to try or how to debug in a good way?

This is my config:

```
 {
     "convert": {
        "field": "timeOfSearch.dayOfMonth",
        "type": "integer",
        "ignore_failure": true
     }
  }
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 23, 2016, 8:54am UTC](https://discuss.elastic.co/t/ingest-node-convert-processor/66954/2 "2016-11-23T08:54:00Z")

</div>

This works well for me:

```auto
GET _ingest/pipeline/_simulate
{
  "pipeline": {
    "processors": [
      {
        "convert": {
          "field": "timeOfSearch.dayOfMonth",
          "type": "integer"
        }
      }
    ]
  },
  "docs": [
    {
      "_source": {
        "timeOfSearch": {
          "dayOfMonth": "02"
        }
      }
    }
  ]
}

```

Gives:

```auto
{
  "docs": [
    {
      "doc": {
        "_index": "_index",
        "_id": "_id",
        "_type": "_type",
        "_source": {
          "timeOfSearch": {
            "dayOfMonth": 2
          }
        },
        "_ingest": {
          "timestamp": "2016-11-23T08:53:22.417+0000"
        }
      }
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![JoarSvensson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joarsvensson/32/8740_2.png) [@JoarSvensson](https://discuss.elastic.co/u/JoarSvensson)\
**Post date:** [November 23, 2016, 9:39am UTC](https://discuss.elastic.co/t/ingest-node-convert-processor/66954/3 "2016-11-23T09:39:20Z")

</div>

Great! I use the pipeline after parsing JSON lines from Filebeat. It might be related to that, I will investigate further.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 21, 2016, 9:39am UTC](https://discuss.elastic.co/t/ingest-node-convert-processor/66954/4 "2016-12-21T09:39:20Z")

</div>

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