# Converting Date-String into Date with Ingest-pipeline not working

**URL:** https://discuss.elastic.co/t/converting-date-string-into-date-with-ingest-pipeline-not-working/277613
**Category:** Elasticsearch
**Tags:** ingest-pipeline
**Created:** [July 2, 2021, 5:27am UTC](https://discuss.elastic.co/t/converting-date-string-into-date-with-ingest-pipeline-not-working/277613 "2021-07-02T05:27:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![adamio](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@adamio](https://discuss.elastic.co/u/adamio)
#### Post date: [July 2, 2021, 5:27am UTC](https://discuss.elastic.co/t/converting-date-string-into-date-with-ingest-pipeline-not-working/277613/1 "2021-07-02T05:27:18Z")

</div>

We have this pipeline:

```auto
PUT _ingest/pipeline/j2-e2a-test
{
  "processors": [
    {
      "grok": {
        "field": "message",
        "patterns": [
          "(?m)(?<myfulldate>%{DATE_EU}\\s+%{TIME})\\s+(%{WORD:loglevel}\\s+)\\s+(?<Correl_id>([\\h]{8}-[\\h]{4}-[\\h]{4}-[\\h]{4}-[\\h]{12}))\\s+\\[(?<Thread_ID>[0-9]{1,2})\\]\\s+(?<Function>\\((.*?)\\))\\s+?%{GREEDYDATA:message}"
        ]
      }
    },
    {
      "date":{
        "field": "myfulldate",
        "formats": ["dd.MM.yyyy HH:mm:ss.SSS"],
        "target_field": "@timestamp",
        "ignore_failure": true,
        "timezone": "Europe/Berlin"
      }
    }
  ]
}

```

this message:

```auto

20.06.2021 04:13:18.492 INFO 2e49acf6-3f65-4c4e-bcdf-354435c83648 [9] (Storage.StorageStaticFactory.Create) (?.?) Es ist kein Anbieter für einen externen Speicher '' hinterlegt

```

We have the problem, that our datetime, is not converting to the @timestamp.

---

<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: [July 2, 2021, 6:54am UTC](https://discuss.elastic.co/t/converting-date-string-into-date-with-ingest-pipeline-not-working/277613/2 "2021-07-02T06:54:18Z")

</div>

Welcome!

It would help if you could provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script is something anyone can **copy and paste in Kibana dev console** , click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

<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 30, 2021, 6:54am UTC](https://discuss.elastic.co/t/converting-date-string-into-date-with-ingest-pipeline-not-working/277613/3 "2021-07-30T06:54:47Z")

</div>

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