Create logs file every 1 hour?

Hello i was wondering if there is any way to create the logs file every 1 hour because its hard to investigate when all logs in the same file and one more thing the file keeps getting bigger on my server that even i cant open it anymore

nohup rasa run -p 7001 --enable-api --log-file out.log --debug &

i am using this command

any ideas how i can do it ?

it is advisable to create a separate configuration file for any specific log file in the /etc/logrotate.d/ directory and define any configuration options there. MyCCPay

Hello Margetbrown,

Can you please elaborate more about this answer ?

Thanks in advance