# Ingest pipeline dissect processor

**URL:** <https://discuss.elastic.co/t/ingest-pipeline-dissect-processor/237019>\
**Category:** Elasticsearch\
**Created:** [June 14, 2020, 10:13am UTC](https://discuss.elastic.co/t/ingest-pipeline-dissect-processor/237019 "2020-06-14T10:13:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajay\_Singh2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajay_singh2/32/68920_2.png) [@Ajay\_Singh2](https://discuss.elastic.co/u/Ajay_Singh2)\
**Post date:** [June 14, 2020, 10:13am UTC](https://discuss.elastic.co/t/ingest-pipeline-dissect-processor/237019/1 "2020-06-14T10:13:30Z")

</div>

Can i do something like if a log contains a specific text ,then use the specific dissect processor statement, else use another dissect statement

```auto
{
  "pipeline" : {
    "processors" : [
      {
      "if": { 
        "contains": "xyz" ,
        "dissect": 
	     { "field": "message",
           "pattern" : "%{date} %{IP} : %{description}"
         }
      }
           "if": { 
        "contains": "abc" ,
        "dissect": 
	     { "field": "message",
           "pattern" : "%{date} %{IP} : %{description}, %{number}"
         }
      }
      }
    ]
  }

```

---

<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 12, 2020, 10:13am UTC](https://discuss.elastic.co/t/ingest-pipeline-dissect-processor/237019/2 "2020-07-12T10:13:32Z")

</div>

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