In this article we will see how we can manage logs generated by Apigee Api Gateway with Elastic Search, Logstash and Kibana. The below diagram highlights how log data flows through ELK stack for data visualization and monitoring.
As part of Api Gateway we will use MessageLogging policy to capture API proxy logs at proxy flow, target flow and post client flow based on the requirement. As of today, MessageLogging policy supports syslog and file based logging(available for only on-premise installations). Below is MessageLogging policy configuration to send logs to syslog server.
Now we will see logstash configuration to ingest data from syslog to logstash. Here I am not giving steps to setup ELK as that is out of scope.
Once syslog data is ingested successfully to Logstash we can configure visualization based on available fields in index. Below is sample visualization created for response API proxy status codes.
In coming articles we will discuss another topic. Till then, Spread love for APIs!!!
This post first appeared on Smart Techie | My Thoughts, My Work, My Ideas, please read the originial post: here