elasticsearch - How to configure logstash to make an request to APIGEE analytics API? -
i new elk stack , trying hit apigee analytics rest api, in form of url. response url json file. best approach go ahead implementation?
i hope question still valid. if understand correctly want send logging data elk stack. why not send instead of retrieving it?
below example of how policy works on apigee platform. need add api proxy , preferably @ postclientflow:
.... </postflow> <postclientflow> <response> <step> <name>message-logging-policy1</name> </step> </response> </postclientflow>
below policy.
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <messagelogging async="false" continueonerror="false" enabled="true" name="message-logging-1"> <displayname>message logging</displayname> <syslog> <message>{system.time.year}-{system.time.month}-{system.time.day}:{system.time.hour}-{system.time.minute}-{system.time.second}.{system.time.millisecond} {apiproxy.name} {request.header.x-requestor-app} {request.header.x-realm} [{request.header.x-requestor-type}|{request.header.x-requestor}] </message> <host>logstash.xxxx.com</host> <port>514</port> </syslog>
hope helps.
Comments
Post a Comment