# Geolocate IPs from Server and Firewall Logs

**Use case:** 

Paste raw nginx, Apache, or firewall logs and get every IP extracted, geolocated, and risk-scored with a recommended action.

## Input

```json
{
  "ipAddresses": [
    "8.8.8.8",
    "1.1.1.1"
  ],
  "rawText": "192.168.1.1 - - [25/Jun/2026:10:00:01 +0000] \"GET / HTTP/1.1\" 200\n45.83.91.4 - - [25/Jun/2026:10:00:02 +0000] \"POST /login HTTP/1.1\" 401\n185.220.101.1 - - [25/Jun/2026:10:00:03 +0000] \"GET /admin HTTP/1.1\" 403\n8.8.8.8 - - [25/Jun/2026:10:00:04 +0000] \"GET /api HTTP/1.1\" 200",
  "extractIpsFromText": true,
  "excludePrivateIps": true,
  "sourceDatasetField": "ip",
  "providerMode": "auto",
  "includeReverseHostname": true,
  "riskProfile": "balanced",
  "blockHosting": false,
  "blockProxy": false,
  "challengeMobile": false,
  "outputMode": "standard",
  "outputProfile": "full",
  "includeExecutiveReport": true,
  "autoDiscoverIpField": false,
  "includeSummary": true,
  "reuseCachedResults": false,
  "cacheTtlHours": 24,
  "generatePolicy": false
}
```

## Output

```json
{
  "ip": {
    "label": "IP Address",
    "format": "string"
  },
  "recommendedAction": {
    "label": "Recommended Action",
    "format": "string"
  },
  "riskLevel": {
    "label": "Risk Level",
    "format": "string"
  },
  "riskScore": {
    "label": "Risk Score",
    "format": "number"
  },
  "connectionType": {
    "label": "Connection Type",
    "format": "string"
  },
  "asnCategory": {
    "label": "ASN Category",
    "format": "string"
  },
  "country": {
    "label": "Country",
    "format": "string"
  },
  "isp": {
    "label": "ISP",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [IP Geolocation Lookup — Country, City, ISP & VPN Detection](https://apify.com/ryanclinton/ip-geolocation-lookup) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ryanclinton/ip-geolocation-lookup) to learn more, explore other use cases, and run it yourself.