# Web traffic log audit workflow

**Use case:** 

Audit web traffic logs for top pages, top IPs, hourly trends, status-code breakdowns, bots, errors, and structured request rows.

## Input

```json
{
  "logText": "#Fields: date time c-ip cs-method cs-uri-stem sc-status sc-bytes cs(User-Agent)\n2026-06-24 12:00:01 203.0.113.1 GET / 200 5120 Mozilla/5.0\n2026-06-24 12:00:05 203.0.113.2 GET /login 500 920 curl/7.88.1\n2026-06-24 12:01:12 203.0.113.3 GET /robots.txt 200 120 Googlebot/2.1",
  "logFormat": "auto",
  "maxLines": 10000,
  "includeStats": true,
  "topN": 25
}
```

## Output

```json
{
  "ip": {
    "label": "IP Address",
    "format": "text"
  },
  "timestamp": {
    "label": "Timestamp",
    "format": "text"
  },
  "method": {
    "label": "Method",
    "format": "text"
  },
  "path": {
    "label": "Path",
    "format": "text"
  },
  "protocol": {
    "label": "Protocol",
    "format": "text"
  },
  "statusCode": {
    "label": "Status",
    "format": "number"
  },
  "responseBytes": {
    "label": "Bytes",
    "format": "number"
  },
  "referrer": {
    "label": "Referrer",
    "format": "text"
  },
  "userAgent": {
    "label": "User Agent",
    "format": "text"
  },
  "logFormat": {
    "label": "Detected Format",
    "format": "text"
  },
  "parseError": {
    "label": "Parse Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Apache & Nginx Log Parser](https://apify.com/automation-lab/apache-log-parser) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/apache-log-parser) to learn more, explore other use cases, and run it yourself.