Coralogix provides seamless integration with Azure
cloud so you can send your logs from anywhere and parse them according to your needs.
coralogix
Clone this repo:
$ git clone https://github.com/coralogix/coralogix-azure-serverless.git $ cd coralogix-azure-serverless/EventHub
Login with Azure cli:
$ az login
Install Azure Functions Core Tools
:
$ make functools
Configure and install Coralogix
function for Azure Functions
. You will need to replace the following environment variables:
# A Unique Identifier to ensure successful deployment of resources with universally unique requirements export UUID=$(od -vN "7" -An -tx1 /dev/urandom|tr -d " \n"; echo) # SAS Policy "Connection String" of EventHub Instance or Namespace export EVENTHUB_SAS_POLICY_CONNECTION_STRING='<YOUR_AZURE_SAS_POLICY_CONNECTION_STRING>' # Private key for Coralogix export CORALOGIX_PRIVATE_KEY='<YOUR_PRIVATE_KEY>' # Name of Azure EventHub to monitor export AZURE_EVENTHUB_NAME='<YOUR_AZURE_EVENTHUB_NAME>' # Replace the placeholder YOUR_EVENTHUB value in the function.json file sed -i "s/YOUR_EVENTHUB/$AZURE_EVENTHUB_NAME/g" EventHub/function.json # Desired Application name and Subsystem name for ingested EventHub messages export CORALOGIX_APP_NAME=YOUR_APP_NAME export CORALOGIX_SUB_SYSTEM=YOUR_SUB_SYSTEM_NAME make install make configure make publish
The <YOUR_AZURE_SAS_POLICY_CONNECTION_STRING>
should be replaced with Event Hub
connection string which you can find in Event Hub
-> Shared access policies
-> Select a SAS policy
-> Connection string-primary key
. It should look like this:
Endpoint=sb://eventhub1.servicebus.windows.net/;SharedAccessKeyName=sas1;SharedAccessKey=TBAfq6...QLwrdeFFE=
Github | Event Hub Documentation |
Terraform | Terraform Modules for Microsoft Azure Event Hub |
Microsoft Azure Functions Manual Integrations | Blob Storage Queue Storage |
Microsoft Azure Functions Serverless Integration | Coralogix Azure serverless integration deployment container |
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].