Ingest pipeline dissect processor

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

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

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