how about my updated answer? or
| makeresults
| eval _raw="2020-07-06 sender=foo@bar.com recipient=baz@bar.co.jp subject=\"test only\""
| rex mode=sed "s/[\w\-\.]+@[\w\-\.]+/XXXXX/g"
Thanks for your reply, is their a regex I could use? As this is only at the search head level.
@joe06031990 I'm not sure what you say "search head level".
1. If you want to mask logs, see my link and try logic.
2. If you want to mask on dashboard, try rex