i have two types of events which starts with below two formats:
2022-01-18 15:20:42,727, xyz........................
[Sun Mar 16 15:21:18.350517 2022], xyz.................
what all need to write in props.conf to see both types of events.
The default LINE_BREAKER = ([\r\n]+) should work for those events (at least the part that is shared).
The trouble you'll have is with the TIME_FORMAT setting. No format will match both of those events so you're better off leaving out TIME_FORMAT and letting Splunk figure out each format on its own. It'll be a little slower, but should work.
If those events are in different files then then you should use different sourcetypes and the above won't apply.