> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/de/insights/onsite/traffic/cloudfront-agent-analytics.md).

# CloudFront

Diese Anleitung führt dich durch die Konfiguration von Amazon CloudFront Echtzeit-Protokollen, um sie über Amazon Kinesis Data Firehose in AirOps zu streamen.

Diese Anleitung führt Sie durch die Konfiguration von Amazon CloudFront **Echtzeitprotokolle** um über **Amazon Kinesis Data Firehose**. Sobald verbunden, wird AirOps Ihren Traffic automatisch analysieren, Besuche von KI-Bots (ChatGPT, Claude, Perplexity, Google und mehr) klassifizieren und Erkenntnisse in Ihrem Agent Analytics-Dashboard anzeigen.

***

### Voraussetzungen

* Ein aktives **AirOps** Konto mit aktiviertem Agent Analytics
* Eine **AWS-Konto** mit Zugriff auf CloudFront, Kinesis Data Firehose und IAM
* Ein **CloudFront-Distribution** die Ihre Website bereitstellt
* Ihre **Workspace-API-Schlüssel:** verfügbar in Einstellungen (linke Navigationsleiste) > Workspace
* Ihre **Brand Kit ID:** verfügbar in der URL durch Navigation zu Kontext (linke Navigationsleiste) > BrandKits, etwas in der Form von `https://app.airops.com/<YOUR_WORKSPACE_SLUG>/data/brand_kits/<YOUR_BRAND_KIT_ID>`

***

### Schritt 1: Erstellen Sie einen Kinesis Data Firehose-Delivery-Stream

1. Öffne das **Amazon Kinesis** Konsole und navigieren Sie zu **Data Firehose**.
2. Klicken Sie auf **Firehose-Stream erstellen**.
3. Konfigurieren Sie Quelle und Ziel:
   * **Quelle:** `Direktes PUT`
   * **Ziel:** `HTTP-Endpunkt`
4. Benennen Sie Ihren Stream (z. B. `airops-cloudfront-analytics`).

#### Konfigurieren Sie das HTTP-Endpunkt-Ziel

| Einstellung            | Wert                                                                     |
| ---------------------- | ------------------------------------------------------------------------ |
| **HTTP-Endpunkt-URL**  | `https://ingest.airops.com/api/v1/cloudfront/<YOUR_BRAND_KIT_ID>/ingest` |
| **Zugriffsschlüssel**  | Ihr AirOps-Workspace-API-Schlüssel                                       |
| **Inhaltskodierung**   | `GZIP`                                                                   |
| **Wiederholungsdauer** | `300` Sekunden (empfohlen)                                               |

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2FVj41I6mzmUrWTy5eAlr2%2FScreenshot%202026-04-02%20at%206.52.32%E2%80%AFPM.png?alt=media&amp;token=33c45fe0-7d89-4008-9a49-c85f7a823972" alt=""><figcaption></figcaption></figure>

#### Pufferhinweise konfigurieren

| Einstellung         | Empfohlener Wert |
| ------------------- | ---------------- |
| **Puffergröße**     | `5 MiB`          |
| **Pufferintervall** | `60` Sekunden    |

Diese Einstellungen steuern, wie oft Firehose Datenpakete an AirOps liefert. Dies sind die empfohlenen Einstellungen, damit Sie keine 429-Fehler von unseren Servern erhalten.

#### Backup-Einstellungen konfigurieren

* **S3-Backup-Bucket:** Wählen Sie einen S3-Bucket für Backups fehlgeschlagener Zustellungen aus oder erstellen Sie einen.
* **Backup-Modus:** `Nur fehlgeschlagene Daten` (empfohlen).

5. Klicken Sie auf **Firehose-Stream erstellen**.

***

### Schritt 2: Erstellen Sie eine CloudFront-Echtzeitprotokoll-Konfiguration

1. Öffne das **CloudFront** Konsole.
2. Gehen Sie in der linken Navigation zu **Protokollierung > Hinzufügen > Amazon Cloudwatch Logs**.
3. Wählen Sie An Amazon Kinesis Firehose senden.
4. Wählen Sie Zielstream: Ihr konfiguriertes Firehose
5. Konfigurieren Sie die folgenden zusätzlichen Einstellungen:

| Einstellung       | Wert   |
| ----------------- | ------ |
| **Felder**        | `alle` |
| **Ausgabeformat** | `JSON` |

#### Protokollfelder auswählen

Wählen Sie **alle** der folgenden Felder. Jedes ist erforderlich, und Protokolle, denen eines davon fehlt, können nicht verarbeitet werden:

| Feld                  | Erforderlich |
| --------------------- | ------------ |
| `timestamp(date)`     | Ja           |
| `timestamp(time)`     | Ja           |
| `cs-method`           | Ja           |
| `cs-uri-stem`         | Ja           |
| `cs(User-Agent)`      | Ja           |
| `cs(Referer)`         | Ja           |
| `cs-protocol-version` | Ja           |
| `cs-protocol`         | Ja           |
| `cs-bytes`            | Ja           |
| `sc-status`           | Ja           |
| `sc-bytes`            | Ja           |
| `sc-content-type`     | Ja           |
| `time-taken`          | Ja           |
| `time-to-first-byte`  | Ja           |
| `ssl-protocol`        | Ja           |
| `ssl-cipher`          | Ja           |
| `x-edge-location`     | Ja           |
| `x-edge-result-type`  | Ja           |
| `x-host-header`       | Ja           |

`c-ip` und `cs-uri-query` sind nicht erforderlich, und AirOps speichert keine Viewer-IP-Adressen oder Abfragezeichenfolgen. Wenn Sie `alle` Felder auswählen, werden sie gesendet, aber wir ignorieren sie. Wenn Sie sie lieber nicht teilen möchten, lassen Sie sie weg.

5. Klicken Sie auf **Konfiguration erstellen**.

***

### Schritt 3: Hängen Sie die Protokollkonfiguration an Ihre Distribution an

1. Gehen Sie zu **CloudFront > Distributionen** und wählen Sie Ihre Distribution aus.
2. Navigieren Sie zum **Verhalten** Tab.
3. Wählen Sie das Verhalten aus, das Sie verfolgen möchten (typischerweise `Standard (*)`) und klicken Sie auf **Bearbeiten**.
4. Unter **Echtzeit-Protokollkonfiguration**, wählen Sie die `airops-analytics` Konfiguration aus, die Sie gerade erstellt haben.
5. Klicken Sie auf **Änderungen speichern**.

Wiederholen Sie dies für alle zusätzlichen Cache-Verhalten, die Sie überwachen möchten.

***

### Schritt 4: Überprüfen Sie die Verbindung

Nachdem Sie die Konfiguration angehängt haben, sollten die Daten innerhalb von **2–5 Minuten**.

1. Erzeugen Sie etwas Traffic auf Ihrer CloudFront-Distribution (besuchen Sie Ihre Website).
2. Überprüfen Sie die Firehose **Überwachung** Registerkarte in der AWS-Konsole, um zu bestätigen, dass Datensätze zugestellt werden.
3. In Ihrem **AirOps-Dashboard**, navigieren Sie zu **Agent Analytics** — Sie sollten bald Traffic-Daten sehen.

<figure><img src="https://1960680173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-83dcd0627e56f248caa6328ca3c0a9fd00e6880f%2Fagent-cloudfront-01-setup-panel.png?alt=media" alt="Set up Agent Analytics panel for CloudFront with the ingest endpoint URL and workspace API token to copy"><figcaption><p>Kopieren Sie die AirOps-Werte für die CloudFront-Einrichtung.</p></figcaption></figure>

#### Fehlerbehebung

| Symptom                                 | Wahrscheinliche Ursache                | Behebung                                                                                                  |
| --------------------------------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| Firehose zeigt Zustellungsfehler (401)  | Ungültiger API-Schlüssel               | Überprüfen Sie Ihren API-Schlüssel in AirOps Einstellungen > Integrationen                                |
| Firehose zeigt Zustellungsfehler (429)  | Ratenlimit überschritten               | Erhöhen Sie das Pufferintervall oder die Puffergröße, um die Zustellfrequenz zu verringern                |
| Keine Daten in der Firehose-Überwachung | Protokollkonfiguration nicht angehängt | Bestätigen Sie, dass die Echtzeitprotokollkonfiguration an das Verhalten Ihrer Distribution angehängt ist |
| Daten in Firehose, aber nicht in AirOps | Verarbeitungsverzögerung               | Warten Sie bis zu 10 Minuten; prüfen Sie, ob Ihre Brand Kit ID in der Endpunkt-URL korrekt ist            |

***

### Ratenlimits

Der AirOps-Ingestor erzwingt ein Ratenlimit von **5 Anfragen pro Minute und API-Schlüssel**. Mit den empfohlenen Puffereinstellungen (5 MiB / 60 Sekunden) bleiben Sie deutlich innerhalb dieses Limits. Wenn Sie Distributionen mit sehr hohem Traffic haben, erhöhen Sie die Puffergröße oder das Intervall entsprechend.

***

### Was AirOps erfasst

Sobald die Verbindung hergestellt ist, führt AirOps automatisch folgende Schritte aus:

* **Nimmt alle CloudFront-Anfragen auf** — Seitenaufrufe, Assets, API-Aufrufe
* **Klassifiziert KI-Bot-Traffic** — identifiziert Besuche von ChatGPT, Claude, Google, Perplexity, Meta, Apple, Bing, Bytedance, Common Crawl und anderen
* **Kategorisiert Crawl-Verhalten** — unterscheidet zwischen KI-Trainings-Crawlern, KI-Suchabrufen, KI-Indizierung und vom Nutzer initiiertem KI-Browsing
* **Stellt Analysen bereit** — Traffic-Aufschlüsselungen, Verhältnisse von Bots zu Menschen und Crawl-Trends in Ihrem Dashboard


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/de/insights/onsite/traffic/cloudfront-agent-analytics.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
