# Adding A New Field in Elasticsearch Ingest Pipeline

**URL:** <https://discuss.elastic.co/t/adding-a-new-field-in-elasticsearch-ingest-pipeline/262891>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [February 1, 2021, 7:55pm UTC](https://discuss.elastic.co/t/adding-a-new-field-in-elasticsearch-ingest-pipeline/262891 "2021-02-01T19:55:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRODIPTO](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@PRODIPTO](https://discuss.elastic.co/u/PRODIPTO)\
**Post date:** [February 1, 2021, 7:55pm UTC](https://discuss.elastic.co/t/adding-a-new-field-in-elasticsearch-ingest-pipeline/262891/1 "2021-02-01T19:55:39Z")

</div>

Hi  
I am working on a migration activity where we are moving from a OSS version of Elastic Stack to Platinum version. We were using Logstash in the OSS cluster to parse the logs but in the Platinum cluster we are going to use Ingest Pipeline. I have a scenario where we need to create a new string field by concatenating two string fields and then convert the concatenated string field to date field.

In logstash we could achieve the expected result by the below block

```auto
     mutate {
                        add_field => { "timestamp" => "%{date_error} %{time}" }
                }

    date {
                        match => ["timestamp", "YYYY-MM-dd HH:mm:ss.SSS"]
    }

```

However in ingest pipeline if i create the new field i.e. timestamp by using Append filter , i am not able to convert it into a date field using date filter.

The data format after concatenation in the "timestamp" field looks like the below -  
`20200609 14:53:25.390 `  
Please let me know how this can be achieved in Ingest Pipeline

---

<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:** [March 1, 2021, 7:55pm UTC](https://discuss.elastic.co/t/adding-a-new-field-in-elasticsearch-ingest-pipeline/262891/2 "2021-03-01T19:55:55Z")

</div>

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