How to customise file name in Post client flow in Message logging policy.

ajytwi
New Member

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 Solved
1 1 173
1 ACCEPTED 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?

View solution in original post

1 REPLY 1

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?