MetloListenPolicy
for the Policy name, check the Listen checkbox, and then click on the Create button on the bottom.
This will generate shared access credentials that the Metlo agent can use to consume the logs that are being sent
to this event hub.
100
,
uncheck Always log errors, check Log client IP address, and set Verbosity to Information
.
To log any request and response headers sent to your APIs, you have to provide a list of the Headers
to log in the Backend Request and Backend Response section. Some headers to include would be:
Request
Logs related to ApiManagement Gateway
checkbox.
Now, check the Stream to an event hub
option under the Destination details section and fill in the
information for the event hub you created earlier. Once you have finished, click on the Save button
in the top left.
Other registry
for the Image source and select the Public
option for Image type. In the Image input field, enter metlo/azure-event-hub-agent:latest
and then select
Linux
for the OS type. Ensure you have at least 2 CPU Cores and 4 GB of Memory selected.
Proceed to the Advanced section of the creation process and set the Restart Policy to On failure
. Next,
add the following environment variables: