HI @sunnyjaisinghani
I would suggest to make yourself familar with Grok patterns. They combine multiple regex, which can capture multiple values into different fields.
After you build your Grok-Patterns you create a pipeline and run the grok there. I explained that on another case here: Regex Matching in Pipeline or Extractor - #16 by ihe
In a stage after your parsing you can replace the message field with some content without PII, again with a pipeline.