Need an example to log request response on message processor via java script

Need a sample example to log request response on message processor via java script.

While using Message logging policy we are facing buffer size issue.

It is by default 128 KB, but if our API response is large than it is giving size issue.

Although we tried increasing it to 1024 KB, then it started working.

But need an approach that can handle large data irrespective of buffer size of MP.

So please confirm if we can use Javascript to log on message processor.

Is it a good approach or suggest some best practices.

0 1 158
1 REPLY 1

log where? To a file? Can you show the MessageLogging policy please?

I think if you want the entire message contents, regardless of its size, you should probably log it to a SERVICE, not to a file on the MP machine.

And by "Service" I mean something like StackDriver, Splunk, Loggly, Azure Log Analytics HTTP Data Collector , etc.