# Conditionals and processor Chains

**URL:** <https://discuss.elastic.co/t/conditionals-and-processor-chains/206938>\
**Category:** Beats\
**Created:** [November 7, 2019, 9:43am UTC](https://discuss.elastic.co/t/conditionals-and-processor-chains/206938 "2019-11-07T09:43:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anabella\_Cristaldi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anabella_cristaldi/32/23612_2.png) [@Anabella\_Cristaldi](https://discuss.elastic.co/u/Anabella_Cristaldi)\
**Post date:** [November 7, 2019, 9:43am UTC](https://discuss.elastic.co/t/conditionals-and-processor-chains/206938/1 "2019-11-07T09:43:06Z")

</div>

Hi,  
Is it possible to use conditionals inside a processor Chain?  
I use a copySubjectUser processor chain in order to copy the SubjectUser information in windows events. For most of the events Subject user information comes from winlog. **event\_data**.Subject\* , but in some events like 1102 (Clear audit log) the information is in winlog. **user\_data**.Subject\* , so either I write a new processor copySubjectUserFromUserData to be use in events like 1102 or somehow depending on the event data I decide which conversion use  
I could write I function in order to evt.Get and evt.Put the fields and decide which one to copy but I think it is less efficient. In this way is more efficient but I'm doing a kind of "duplication" of the copySubjectUser

@andrewkroh What do you think?  
Thank you  
Regards

---

<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:** [December 5, 2019, 11:43am UTC](https://discuss.elastic.co/t/conditionals-and-processor-chains/206938/2 "2019-12-05T11:43:14Z")

</div>

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