Hi ,
I have through below post but didn't received the solution.
https://community.apigee.com/questions/21252/custom-file-name-for-message-logging.html
I am using on-premises apigee edge installation where I wanted to include message logging policy.
But I wanted to parameterise file name.
i.e file name should be:
{proxy_name}.{date}.log
How to achieve this?
Thanks
Solved! Go to Solution.
The FileName element accepts only a static value.
<FileName>this-value-is-static.log</FileName>
According to the documentation,
By default, message logs are located in the following location on Message Processors:
/opt/apigee/var/log/messagelogging/{org}/{environment}/{api_proxy_name}/{revision}/{logging_policy_name}/
The proxy name is included in the directory (obviously).
Log rotation will give you dates.
Are you sure you need to have the proxy name and date in the log file itself?
The FileName element accepts only a static value.
<FileName>this-value-is-static.log</FileName>
According to the documentation,
By default, message logs are located in the following location on Message Processors:
/opt/apigee/var/log/messagelogging/{org}/{environment}/{api_proxy_name}/{revision}/{logging_policy_name}/
The proxy name is included in the directory (obviously).
Log rotation will give you dates.
Are you sure you need to have the proxy name and date in the log file itself?