Hi!
I am writing a custom logger plugin to send a log from microgateway to external cloud log system.
I need to send so many details about the environment, app, product, proxy, target, request & response headers, request & response payloads.
Is there any documentation to refer the flow variables for microgateway plugin authoring (like Edge Cloud)?
Please guide me how to know all these values.
Thanks!
There is no concept of Flow variables in Microgateway.
All the variables you want are in the req or res objects.
@srinandans Thank You! I can see the fields and values in res and req objects. But I am not able to get the equivalents/counterparts of request.content and response.content.
1) Please provide an example to get these values.
2) What are the values in "Buffer" field?
Take a look at this example for how to read chunks of data.
https://github.com/apigee/microgateway-plugins/blob/master/accumulate-request/index.js