Learn more about Streama© – the foundational technology behind our stateful streaming data platform. Learn More

Microsoft Azure Functions

Microsoft Azure is one of the major cloud platforms that is being used nowadays. Coralogix works on making the integration with these cloud platforms as easy as possible. To get the most of  your cloud login and to get up and running as quickly as possible, follow the steps below.

There are some prerequisite for this seamless integration:


Clone the repo below.

git clone https://github.com/coralogix/coralogix-azure-serverless.git
cd coralogix-azure-serverless/

Login to Azure Cli

$az login

Install Azure Functions Core Tools

$make functools

Configure (Replace environment variables with appropriate values) and install Coralogix function for Azure Functions:

$ export AZURE_FUNCTION_NAME=coralogixblob


Private Key – A unique ID that represents your company. The private key can be found under ‘settings’->’ send your logs’. It is located in the upper left corner.

Application Name – The name of your main application, for example, a company named “SuperData” would probably insert the “SuperData” string parameter or if they want to debug their test environment they might insert the “SuperData– Test”.

SubSystem Name – Your application probably has multiple subsystems, for example: Backend servers, Middleware, Frontend servers etc. in order to help you examine the data you need, inserting the subsystem parameter is vital.

The <YOUR_REGION> should be one of the following:

centralus, eastasia, southeastasia, eastus, eastus2, westus, westus2, northcentralus, southcentralus, westcentralus, northeurope, westeurope, japaneast, japanwest, brazilsouth, australiasoutheast, australiaeast, westindia, southindia, centralindia, canadacentral, canadaeast, uksouth, ukwest, koreacentral, koreasouth, francecentral, southafricanorth, uaenorth, australiacentral, switzerlandnorth, germanywestcentral, norwayeast, jioindiawest, westus3, australiacentral2

$ make install
$ make configure
$ make publish

The <YOUR_STORAGE_ACCOUNT_CONNECTION_STRING>  should be replaced with Storage Account connection string which you can find in Storage Account -> Access keys -> Connection string. It should look like:


For more information about the configuration please see below.


By default BlobStorage function will be triggered when you upload files to logs container in your Storage Account. You can change this to your custom container name in file BlobStorage/function.json (bindings.path parameter):

   "scriptFile": "../dist/BlobStorage/index.js",
   "disabled": false,
   "bindings": [
      "name": "blob",
      "type": "blobTrigger",
      "direction": "in",
      "path": "<YOUR_CONTAINER_NAME>/{name}",

If you store multiline data, just export NEWLINE_PATTERN environment variable with regex for line splitting and execute.

The new line pattern is exported by default. You can use the environment variable below to make sure the new line pattern is supported.

export NEWLINE_PATTERN="(?:\r\n|\r|\n)"
$ make configure