Change log4j2.properties logging location?

Hello

This really doesnt fit anywhere I think

I want to configure log4j2.properties for both elastic and Logstash to write logs in a daily format (2021.08.24-log-name) and to another location.

I know log4j2 uses variables so how can I configure this?

Thank you