Hello @Daniel Sotreanu ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know for how long the VPN logs are retained and how to query them.
Retention period settings are configured in Diagnostic settings tab of Azure monitor in case you are sending the logs to a storage account as below:
If the logs are being sent to log analytics, then the retention period is set/changed at the workspace/table level:
Regarding your question on how to query the VPN logs, you can refer the below article which lists some of the sample queries for the VPN logs:
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.