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
- Select the affected IIS site.
- Set the time range to include the alert start time and preceding baseline.
- Check status classes and request rate.
- Identify affected URI stems.
- Correlate client IPs and user agents to distinguish user traffic from scanning/crawling.
- Correlate with application-pool and worker-process metrics.
- 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.