Can you elaborate more?
Do you need metrics or transaction details?
Refer this http://docs.apigee.com/api-services/reference/message-logging-policy and http://docs.apigee.com/analytics-services/content/use-analytics-api-measure-api-program-performance @sharique
we need transaction details
@sharique In that case refer message-logging-policy http://docs.apigee.com/api-services/reference/message-logging-policy
@sharique as described above you can use the message-logging-policy to capture anything you want on the request or response. But before implementing it, please consider the following:
hi @Maudrit thanks for your reply.
As per your suggestion i added message logging policy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <MessageLogging async="false" continueOnError="false" enabled="true" name="Message-Logging-Fluentd"> <DisplayName>Message Logging-Fluentd</DisplayName> <Syslog> <Message>message = {request.header.id:unknown_apigee_request_header_id}</Message> <Host>localhost</Host> <Port>8888</Port> <Protocol>TCP</Protocol> <SSLInfo> <Enabled>true</Enabled> </SSLInfo> <FormatMessage>true</FormatMessage> </Syslog> <logLevel>ALERT</logLevel> </MessageLogging>
i also tried port 514
but i am not able to get log information into my third party log server.
Port is where the syslog is running. If you don't include this element, the default is 514. Do you know if 514 is being used in your case? confirm the port first.
Do you see any error messages in your MP system.logs? You should see log messages as mentioned here https://community.apigee.com/articles/42504/tcpsyslogsocket-logic.html
Hi @Maruti Chand in my case i am listening to port 5140 at my external logging servrer.
@sharique, Do you see any errors in the logs when you changed the port to 5140?
@Maruti Chand unfortunately i am not getting error for port 5140. just fyi my fluentd log server receives logs from http request e.g curl -X POST -d 'json={"name":"xxxxxxx","role":"yyyyyyy"}' http://xx.xxx.xxx.xx:8888/debug.test.
My log server is configured on AWS EC2.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |