Presently Data Prepper does not support conditional logic. Last week I posted an RFC for a simple conditional system using a when:
property.
https://github.com/opensearch-project/data-prepper/issues/522
I’m very interested in any feedback on the concept or implementation.