Enable Diagnostics in the Azure Portal
In this step you will enable Blob Log storage for your Azure Web App.
- Login to https://portal.azure.com/.
- Go to your Azure Web App and click Settings > Diagnostics logs.
- For Application Logging (Blob) click On.
- For Level, select Information.
- Click Storage Settings and select Storage Account and Container (Existing or Add New One). This Storage Account and Container will be used to store Logs for your Web App. For details see: https://azure.microsoft.com/en-us/do...iagnostic-log/
- For Web server logging select Storage.
- Click Storage Settings and select the same settings as you did in Step 5.
Copy the name of the Storage Account and Container to a Notepad. You will need these values in the section Run the Solutions Template from the Azure Marketplace.
Create a Sumo Logic Access Key and ID
In Sumo Logic, create an Access Key and ID. You will need them to configure the Azure Marketplace template in the next section.
Run the Solutions Template from the Azure Marketplace
From the Azure Marketplace, you will search for and run the solutions template Sumo Logic for Azure Web Apps.
This template will create an Azure Virtual Machine and configure a Sumo Logic Installed Collector. Depending on the information you provide, it will also create:
- One Local Windows Event Log Source
- One Script Source to collect Azure Web App Logs
To run the template:
- Login to https://portal.azure.com.
- Click + New.
- In the Search field, search for Sumo Logic.
- Select Sumo Logic for Azure Web Apps, then click Create.
- On the Basics tab, enter the following:
- Collector Name. Enter the Sumo Logic Collector name. It is used as the prefix for resource names created by this template. It cannot be longer than 12 characters.
- Sumo Logic Access ID. From your Sumo Logic account, create an Access ID and Key and enter the Access ID here. This key pair is used to register the embedded Collector with Sumo Logic.
- Sumo Logic Access Key. Enter the Access Key here.
- Encryption Phrase. Enter a phrase to be used to encrypt the Azure Web Apps credentials.
- Username. Enter the Admin username for the Sumo Logic Collector VMs.
- Password. Enter the password for the user account.
- Subscription. Select your subscription from the menu.
- Resource Group. A Resource Group is a collection of resources that share the same lifecycle, permission and policies.
- Location. Select the same Location where your Azure Web Apps have been deployed.
- Click OK.
- On the Common Settings tab, enter the following:
- Storage Account. Enter your storage account.
- Virtual Network. Enter the Virtual Network to be used by this application.
- Subnets. Enter the Subnets in the selected virtual network.
- Diagnostics Storage Account. Enter your diagnostics storage account.
- Click OK.
- On the Sumo Logic Collector Configuration tab, enter the following:
- Azure Web Apps Storage Account Name. Select the name of the Azure Blob Storage Account where Web App Logs are being stored. (You saved this value to a Notepad in the previous sections.)
- Azure Web Apps Blob Container Name. Enter the Blob container name where logs are being collected. (You saved this value to a Notepad in the previous sections.)
- Public IP Address. Enter the name of the public IP address to be assigned to the Sumo Logic Collector.
- Domain Name Label. Enter the domain name label for the Sumo Logic Collector VM that has a public IP address. (For example: collector01. If the Location you selected earlier is West US, then the full DNS name for this example would be: collector01.westus.cloudapp.azure.com.)
- Sumo Logic Collector VM Size. Enter the size of the Sumo Logic Collector VM.
- Click OK.
- On the Summary tab, review your configuration.
- Click OK.
- On the Buy tab, click Purchase.
Install the App
Next, use these instructions to Install Azure Web Apps.