Configuring Azure Monitor with Log Analytics for IIS Servers
Azure Monitor mixed with Log Analytics gives centralized telemetry assortment for efficiency metrics, occasion logs, and utility logs from Home windows-based workloads. This information demonstrates find out how to configure information assortment from IIS servers utilizing Information Assortment Guidelines (DCRs).
Create the Log Analytics Workspace
- Navigate to Log Analytics workspaces within the Azure portal
- Choose Create
- Select your useful resource group (e.g., Zava IIS useful resource group)
- Present a workspace title and choose your most well-liked area
- Choose Evaluation + Create, then Create
After deployment, configure RBAC permissions by assigning the Contributor position to customers or service principals that must work together with the workspace information.
Configure Information Assortment Infrastructure
Create a Information Assortment Endpoint:
- Navigate to Azure Monitor within the portal
- Choose Information Assortment Endpoints, then Create
- Specify the endpoint title, subscription, useful resource group, and area (match your Log Analytics workspace area)
- Create the endpoint
Create a Information Assortment Rule:
- Navigate to Information Assortment Guidelines and choose Create
- Present a rule title, useful resource group, and area
- Choose Home windows because the platform kind
- Select the information assortment endpoint created within the earlier step
- Skip the Sources tab initially (you will affiliate VMs later)
Configure Information Sources
Add three information supply sorts to seize complete telemetry:
Efficiency Counters:
- On the Acquire and Ship web page, choose Add information supply
- Select Efficiency Counters as the information supply kind
- Choose Fundamental for normal CPU, reminiscence, disk, and community metrics (or Customized for particular counters)
- Set the vacation spot to Azure Monitor Logs and choose your Log Analytics workspace
Home windows Occasion Logs:
- Add one other information supply and choose Home windows Occasion Logs
- Select Fundamental assortment mode
- Choose Utility, Safety, and System logs
- Configure severity filters (Essential, Error, Warning for Utility and System; Audit Success for Safety)
- Specify the identical Log Analytics workspace because the vacation spot
IIS Logs:
- Add a remaining information supply for Web Data Companies logs
- Settle for the default IIS log file paths or customise as wanted
- Set the vacation spot to your Log Analytics workspace
After configuring all information sources, choose Evaluation + Create, then Create the information assortment rule.
Affiliate Sources
- Navigate to your newly created Information Assortment Rule
- Choose Sources from the rule properties
- Click on Add and choose your IIS servers (e.g., zava-iis1, zava-iis2)
- Return to Information Assortment Endpoints
- Choose your endpoint and add the identical IIS servers as sources
This two-step affiliation ensures correct routing of telemetry information.
Question Collected Information
After permitting time for information assortment, question the telemetry:
- Navigate to your Log Analytics workspace
- Choose Logs to open the question editor
- Browse predefined queries below Digital Machines
- Run the “What information has been collected” question to view efficiency counters, community metrics, and reminiscence information
- Entry Insights to observe information ingestion volumes
You’ll be able to create customized KQL queries to research particular occasions, efficiency patterns, or IIS log entries throughout your monitored infrastructure.
Discover out extra at: https://be taught.microsoft.com/en-us/azure/azure-monitor/fundamentals/overview
