Need to capture the system.log in APIGEE

Hi Team
Is there is any way to capture /opt/apigee/var/log/edge-message-processor/logs/system.log "System.log" in APIGEE on particular proxy. I mean raise fault or assign message policy can we capture the log.


HTTP.CLIENT - HTTPClient$Context.onConnectFailure() : connect to 101.223.108.43 failed with exception
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)
at com.apigee.nio.ClientChannel.finishConnect(ClientChannel.java:134)
at com.apigee.nio.handlers.NIOThread.run(NIOThread.java:205)
2024-01-23 04:47:20,166 NIOThread@1 INFO ADAPTORS.HTTP.FLOW - LBTargetRequestSender.sendRequest() : Failed to send request to target servers :101.223.108.43
2024-01-23 04:47:20,166 NIOThread@1 INFO ADAPTORS.HTTP.FLOW - LBTargetRequestSender.resolveHTTPClient() : Retrying on target server : 101.223.108.44

1 1 51
1 REPLY 1

No you cant access the logs from a proxy but there should be an Apigee fault generated and you can use FaultRules to then handle the fault and perform logging as needed https://docs.apigee.com/api-platform/fundamentals/fault-handling