@Rajesh Selvam Thanks for your patience on this.
I have checked with Internal team and sharing the below.
Unfortunately, replay or retention of the logs before the enable the diagnostic settings were not possible.
All the logs will be sent to azure monitor only going forward starting from the date when the diagnostic settings were enabled.
Hope this helps, let me know if you have any further questions on this.