Logging API calls is an important security and reporting requirement for production applications. To understand traffic patterns, identify potential security risks, and analyze end-user behavior, you need API logging at two levels: a detailed record of each API call and an aggregated view of API traffic over time, segmented in various ways (for example by geography).We’re excited to announce that we’ve added API logging as a premium feature in DreamFactory Gold. Here’s how it works:
- You install DreamFactory Gold, which includes a pre-installed ELK stack (Elasticsearch, Logstash, Kibana) or you can install Logstash yourself.
- The API logging feature uses Logstash as the logging system. DreamFactory provides a simple native REST API to log API calls to any Logstash service listening for input on the UDP, TCP, or HTTP protocol.
- To learn how DreamFactory API logging works, see this short tutorial. Getting up and running with Logstash is easy and the REST API for logging is straightforward to use.
We’re excited to hear what you think. If you have questions or feedback, please let us know in the blog comments or head over to our community forum and ask away!