messaging logging without using message logging policy

Hi,

I am trying to troubleshoot an issue where I need to capture the payload (msg + headers). The msg is not reaching message processor and i suspect the issue is related to headers.

I tried editing this file but nothing happened

-rw-rw-r-- 1 apigee apigee 375 Apr 15 11:30 alerts.properties # cat message-logging.properties # # Copyright (c) 2010, Apigee Corporation. All rights reserved. # Apigee(TM) and the Apigee logo are trademarks or # registered trademarks of Apigee Corp. or its subsidiaries. All other # trademarks are the property of their respective owners. # log.root.dir=../messagelogging max.log.message.size.in.kb=128 max.pending.write.size.in.mb=4 max.write.delay.seconds=30 #Set this property to true to enable flat directory structure for log files created #enable.flat.directory.structure=false

0 1 313
1 REPLY 1

You can accomplish this another way as well. Turn on debugging, send a few requests and then turn off debugging.

Turn on debugging on the router, but don't forget to turn it off.

curl -v -X POST "http://localhost:8081/v1/logsessions?session=debug1"

Turn it off with the following request.

curl -v -X DELETE "http://localhost:8081/v1/logsessions?session=debug1"

You can view the log messages in the following directory.

/opt/apigee4/var/log/apigee/router/logs/sessions
,

One way to accomplish this is to turn on debugging on the router, send a couple of requests and then stop the debug session.

curl -v -X POST "http://localhost:8081/v1/logsessions?session=debug1"

Don't forget to stop the debug session once you are finished sending the requests!

curl -v -X DELETE "http://localhost:8081/v1/logsessions?session=debug1"

You can view the log files here.

var/log/apigee/router/logs/sessions