I have on-prem apigee edge version 4.14.07, and i've sent test traffic through the system and have triggered my message logging policy many times; however, I can't find any trace of the local log file.
does anyone know which server the logs are saved to and in what folder?
here are the contents of my message logging policy:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <MessageLogging async="false" continueOnError="false" enabled="true" name="logging-pre"> <DisplayName>logging-pre</DisplayName> <FaultRules/> <Properties/> <BufferMessage>false</BufferMessage> <File async="true"> <FileName>proxy-preflow.log</FileName> <FileRotationOptions rotateFileOnStartup="true"> <MaxFileSizeInMB>10</MaxFileSizeInMB> <MaxFilesToRetain>10</MaxFilesToRetain> <RotationFrequency unit="day">1</RotationFrequency> <FileRotationType>SIZE</FileRotationType> </FileRotationOptions> <FlushAfterEachWrite>false</FlushAfterEachWrite> <Message>{system.timestamp},{client.email.address},{request.verb},{request.header.host},{request.uri},{request.content},{error.state},{error.message},{error.content}</Message> </File> <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> <logLevel>INFO</logLevel> <NotificationIntervalInSec>0</NotificationIntervalInSec> </MessageLogging>
any help would be much appreciated!
Solved! Go to Solution.
The log files from message logging policy will appear on the Message Processor machines, in the following path.
/opt/apigee4/var/log/apigee/message-processor/messagelogging/<ORG>/<env>/<API>/<revision>/<Logging policy>
The log rotation will result in multiple files under this directory.
The log files from message logging policy will appear on the Message Processor machines, in the following path.
/opt/apigee4/var/log/apigee/message-processor/messagelogging/<ORG>/<env>/<API>/<revision>/<Logging policy>
The log rotation will result in multiple files under this directory.
you are a genius, gentleman, and a scholar! thank you for the quick response, Madhan!