Skip to content

IIS log investigation

Use the IIS Logs Grafana dashboard as the primary request-level investigation surface.

Useful LogQL queries

All IIS requests:

{source="iis",iis_site="<SITE>"}

5xx responses:

{source="iis",iis_site="<SITE>"} | status=~"5.."

4xx responses:

{source="iis",iis_site="<SITE>"} | status=~"4.."

Slow requests:

{source="iis",iis_site="<SITE>"} | time_taken_ms >= 1000

Investigation sequence

  1. Select the affected IIS site.
  2. Set the time range to include the alert start time and preceding baseline.
  3. Check status classes and request rate.
  4. Identify affected URI stems.
  5. Correlate client IPs and user agents to distinguish user traffic from scanning/crawling.
  6. Correlate with application-pool and worker-process metrics.
  7. Preserve representative log lines and timestamps for escalation.

The Loki stream contains structured metadata such as status, uri_stem, method, client_ip and time_taken_ms, which makes this investigation more specific than searching raw text alone.