Hello,
Thank you for posting on the Forum.
From feedback from the North America Technical Team for Microsoft Dynamics NAV Support:
“Optimum” is quite subjective. A client may certainly lower either of these settings if the number of records are too large. Many environments have these set to 1 day as they generate many session event records.

From the config….
<add key="SessionEventTableRetainInterval" value="90.00:00:00" />
<!--
Specifies the time interval that sessions in the Session Events table remain before they are deleted.
This value has format d.hh:mm:ss.
-->
<add key="NonInteractiveSessionsLogRetainInterval" value="5.00:00:00" />
<!--
Specifies the time interval that background and web service sessions remain in the Session Event table before they are deleted.
This value has format d.hh:mm:ss.
-->
Thank you again for posting on the Forum.
Best Regards,