# GROK strange issue

**URL:** <https://discuss.elastic.co/t/grok-strange-issue/228618>\
**Category:** Elasticsearch\
**Created:** [April 18, 2020, 5:27am UTC](https://discuss.elastic.co/t/grok-strange-issue/228618 "2020-04-18T05:27:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunus0475](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brunus0475/32/66572_2.png) [@brunus0475](https://discuss.elastic.co/u/brunus0475)\
**Post date:** [April 18, 2020, 5:27am UTC](https://discuss.elastic.co/t/grok-strange-issue/228618/1 "2020-04-18T05:27:44Z")

</div>

Hi All,

where is my configuration error, we've only moved the timestamp field at the start of the message:

```auto
    ## GROK NOT WORK
    POST /_ingest/pipeline/_simulate
    {
      "pipeline": {
        "processors": [
          {
            "grok": {
              "field": "message",
              "patterns": ["""%{TIMESTAMP_ISO8601:@timestamp} %{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration} %{TIMESTAMP_ISO8601:@timestamp}"""]
            }
          }
        ]
      },
        "docs": [
        {
          "_source": {
            "message": "2019-09-29T00:39:02.91ZZ 55.3.244.1 GET /index.html 15824 0.043 "
          }
        }
      ]
    }

    ## GROK WORKS FINE
    POST /_ingest/pipeline/_simulate
    {
      "pipeline": {
        "processors": [
          {
            "grok": {
              "field": "message",
              "patterns": ["""%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration} %{TIMESTAMP_ISO8601:@timestamp}"""]
            }
          }
        ]
      },
        "docs": [
        {
          "_source": {
            "message": "55.3.244.1 GET /index.html 15824 0.043 2019-09-29T00:39:02.91ZZ"
          }
        }
      ]
    }

```

---

<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:** [May 16, 2020, 5:27am UTC](https://discuss.elastic.co/t/grok-strange-issue/228618/2 "2020-05-16T05:27:45Z")

</div>

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