# Ingest pipeline: weird behaviour in changing the order of the grok processor patterns

**URL:** <https://discuss.elastic.co/t/ingest-pipeline-weird-behaviour-in-changing-the-order-of-the-grok-processor-patterns/295918>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [February 1, 2022, 8:28am UTC](https://discuss.elastic.co/t/ingest-pipeline-weird-behaviour-in-changing-the-order-of-the-grok-processor-patterns/295918 "2022-02-01T08:28:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsteenkamp](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jsteenkamp](https://discuss.elastic.co/u/jsteenkamp)\
**Post date:** [February 1, 2022, 8:28am UTC](https://discuss.elastic.co/t/ingest-pipeline-weird-behaviour-in-changing-the-order-of-the-grok-processor-patterns/295918/1 "2022-02-01T08:28:37Z")

</div>

Kibana 7.16.3 in latest Firefox and Brave (chromium) browsers

steps to reproduce:

- go to app/management/ingest/ingest\_pipelines
- create pipeline
- name: any
- add processor: grok
- field: message
- first pattern: ^%{GREEDYDATA:field1}$
- add pattern: ^%{GREEDYDATA:field2}$
- add
- click grok to edit the processor again
- add pattern: ^%{GREEDYDATA:field3}$
- now move the third pattern to the first position (drag & drop)

First pattern gets overwritten by the previous first pattern. If you have a complex pattern, you hardly notice this issue, but it will mess up your ingest pipeline.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/3/b32b57c109bd4099b20a1881fe0483d6f0283bf2.jpeg)

---

<div class="post-metadata">

**Author:** ![jsteenkamp](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jsteenkamp](https://discuss.elastic.co/u/jsteenkamp)\
**Post date:** [February 2, 2022, 2:26pm UTC](https://discuss.elastic.co/t/ingest-pipeline-weird-behaviour-in-changing-the-order-of-the-grok-processor-patterns/295918/2 "2022-02-02T14:26:13Z")

</div>

I can still reproduce this issue in release 7.17

---

<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 2, 2022, 2:26pm UTC](https://discuss.elastic.co/t/ingest-pipeline-weird-behaviour-in-changing-the-order-of-the-grok-processor-patterns/295918/3 "2022-03-02T14:26:20Z")

</div>

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