Back to controls

Ensure logging for Azure AppService 'HTTP logs' is enabled

Enable AppServiceHTTPLogs diagnostic log category for Azure App Service instances to ensure all HTTP requests are captured and centrally logged.

Category

Controls

Low

Applies to

Microsoft Azure

Coverage

1 queries

Asset types

1 covered

Overview

Enable AppServiceHTTPLogs diagnostic log category for Azure App Service instances to ensure all HTTP requests are captured and centrally logged.

Rationale

Capturing web requests can provide important supporting information for security analysts performing monitoring and incident response activities. Once logged, these logs can be ingested into SIEM or another central aggregation point for the organization.

Impact

Log consumption and processing will incur additional costs.

Default Value

By default, HTTP logs are not collected

Remediation guidance

Remediate from Azure Portal

  1. Open the App Service using the Open in Azure button.
  2. Under Monitoring, go to Diagnostic settings.
  3. To update an existing diagnostic setting, click Edit setting against the setting. To create a new diagnostic setting, click Add diagnostic setting and provide a name for the new setting.
  4. Check the checkbox next to HTTP logs.
  5. Configure a destination based on your specific logging consumption capability (for example, streaming to an event hub and then consuming with SIEM integration for Event Hub logging).
  6. Click Save.

Service-wide remediation

Recommended when many resources are affected: fix the platform baseline first so new resources inherit the secure setting, then remediate the existing flagged resources in batches.

Azure

Use management group or subscription Azure Policy assignments, remediation tasks where supported, landing-zone standards, and IaC modules so drift is prevented at scale.

Operational rollout

  1. Fix the baseline first at the account, subscription, project, cluster, or tenant scope that owns this control.
  2. Remediate the currently affected resources in batches, starting with internet-exposed and production assets.
  3. Re-scan and track approved exceptions with an owner and expiry date.

Query logic

These are the stored checks tied to this control.

Azure App Services (Sites) without HTTP logging

Connectors

Microsoft Azure

Covered asset types

Site

Expected check: eq []

{
  sites(
    where: {
      diagnosticSettings_SOME: {
        logs_SOME: { enabled: false, category: "AppServiceHTTPLogs" }
      }
    }
  ) {
    ...AssetFragment
  }
}
Cyscale Logo
Cyscale is an agentless cloud-native application protection platform (CNAPP) that automates the contextual analysis of cloud misconfigurations, vulnerabilities, access, and data, to provide an accurate and actionable assessment of risk.

Stay connected

Receive new blog posts and product updates from Cyscale

By clicking Subscribe, I agree to Cyscale’s Privacy Policy


© 2026 Cyscale Limited

LinkedIn icon
Twitter icon
Facebook icon
crunch base icon
angel icon