Connecting An Azure Function App to Loggly

Doing the following will get a Function App hooked up to Loggly.

  1. Create an Event Hub namespace, and an Event Hub.
  2. Create a Function App, and an Event Hub function.
  3. Create a Loggly HTTP/S Event Endpoint, and get the URL endpoint.
  4. Update the Event Hub trigger with this code (use test to verify)
  5. Create a HTTP Trigger function.
  6. In the Function App’s diagnostic settings, turn on FunctionAppLogs and stream to the Event Hub.
  7. Call the HTTP trigger endpoint and verify results in Loggly.

Reference

https://www.loggly.com/blog/how-to-stream-logs-from-azure-resources-to-loggly/