Grafana-login&log-out user logs

Hi Team,
I am using grafana open source version 10.2.2 so now my requirement is to have a 150 days of log in and log out logs of grafana users is it possible to have to 150 days of logs in open source ?
will it work if i change the number of days in the grafana.ini file just like below?

# Expired days of log file(delete after max days), default is 7
max_days = 150

if not, what configuration that i need to do to have a 150 days of logs of grafana user

If you are using Loki, you may read grafana log files and keep them in Loki’s database as long as you want.

Hi thanks for your response , without using loki can’t we get the log in and log out logs and user activity logs in the grafana?