# Prevent ingest pipeline processor from nesting field names

**URL:** <https://discuss.elastic.co/t/prevent-ingest-pipeline-processor-from-nesting-field-names/336723>\
**Category:** Elasticsearch\
**Tags:** language-clients, ingest-pipeline\
**Created:** [June 22, 2023, 8:18pm UTC](https://discuss.elastic.co/t/prevent-ingest-pipeline-processor-from-nesting-field-names/336723 "2023-06-22T20:18:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)\
**Post date:** [June 22, 2023, 8:18pm UTC](https://discuss.elastic.co/t/prevent-ingest-pipeline-processor-from-nesting-field-names/336723/1 "2023-06-22T20:18:25Z")

</div>

Consider the following ingest pipeline w/simulation...

```auto
PUT _ingest/pipeline/test
{
  "processors": [
    {
      "set": {
        "field": "donot.nest",
        "value": "somevalue",
        "if": "ctx['somedata'] == 2"
      }
    }
  ]
}
POST /_ingest/pipeline/test/_simulate
{
  "docs": [
    {
      "_source": {
        "somedata": 2
      }
    }
  ]
}

```

I need to prevent the `field` specified in the `set` processor from being nested when it is created.

What is being created...

```auto
"donot": {
  "nest": "somevalue"
},

```

What is needed...

```auto
"donot.nest": "somevalue"

```

Is this at all possible using Painful?

---

<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:** [July 20, 2023, 8:18pm UTC](https://discuss.elastic.co/t/prevent-ingest-pipeline-processor-from-nesting-field-names/336723/2 "2023-07-20T20:18:58Z")

</div>

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