> ## Documentation Index
> Fetch the complete documentation index at: https://www.conductor.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Up the Akamai Integration

> Stream Akamai DataStream logs into Conductor Monitoring to enable Log File Analysis.

Setting up Log File Analysis with the [Akamai DataStream](https://techdocs.akamai.com/datastream2/docs) in Conductor Monitoring is very straightforward! Follow the steps outlined below to enable Log File Analysis in Conductor Monitoring, and set up the Akamai integration.

## Setting up the Log File Analysis

The process of configuring the Log File Analysis consists of two phases:

* Enabling the Log File Analysis feature and creating an [AWS S3 bucket](https://aws.amazon.com/s3/) in Conductor Monitoring
* Configuring the Akamai DataStream in the Akamai UI and associating the DataStream to the corresponding property

### 1. Enabling the Log File Analysis feature and creating an AWS S3 bucket in Conductor Monitoring

If you navigate to **Account** and then **Websites** section in Conductor Monitoring, you can easily filter and see which of the websites you are monitoring in Conductor Monitoring are on Akamai:

<img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-websites_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=716947c5c0525c047f55b0b5ee6ddf29" alt="contentking-lfa-websites@2x.png" width="1200" height="750" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-websites_2x.png" />

From there, just follow the steps outlined below to enable Log File Analysis on the wanted website:

1. Click any website that is running on Akamai in the [Websites section](https://app.contentkingapp.com/account/websites?view=list) of Conductor Monitoring.
2. Click the **Log File Analysis** tab in **Settings**.
3. Enable the **Log File Analysis** toggle.

After this is done, follow the next steps to create an AWS S3 bucket in Conductor Monitoring:

1. In the same **Log File Analysis** section, click the **How to install** link under **Log Sources.**\
   **<img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-install-button_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=793bdb3c673477a0ba4c170301c1905d" alt="contentking-lfa-akamai-install-button@2x.png" width="1200" height="749" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-install-button_2x.png" />**
2. Specify in which region should the AWS S3 bucket be created (EU or US) and click on **Create bucket**.\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-region-bucket_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=63eb9f2a9bc3ec6a0501be43e60883b7" alt="contentking-lfa-akamai-region-bucket@2x.png" width="1200" height="543" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-region-bucket_2x.png" />
3. After this, Conductor Monitoring will automatically generate the AWS credentials and the AWS S3 bucket.\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-credentials_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=b176d392fd32d490b32ed5c540fc6045" alt="contentking-lfa-akamai-credentials@2x.png" width="1200" height="716" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-credentials_2x.png" />
4. The credentials will be used to associate the AWS S3 bucket with the Akamai DataStream in the next section.

### 2. Configuring the Akamai DataStream

The Akamai DataStream needs to be manually configured in the Akamai UI for every website. The configuration of the Akamai DataStream consists of two steps:

* Creating a new Akamai DataStream
* Associating the DataStream to the corresponding property (domain)

#### Creating a new Akamai DataStream

Follow these steps to create a new Akamai DataStream:

1. Log in to your [Akamai Control Center](https://control.akamai.com/apps/home-page/#/home) and click on **DataStream** in the navigation bar:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-datastream-nav_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=e6d518a20ad02408511dd35486891333" alt="contentking-lfa-akamai-datastream-nav@2x.png" width="1448" height="1436" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-datastream-nav_2x.png" />
2. On the **DataStream** screen, click **Create stream**:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-create-stream_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=2520a6dc4dfaf5e429ca70afe37c9170" alt="contentking-lfa-akamai-create-stream@2x.png" width="2880" height="698" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-create-stream_2x.png" />
3. Configure the DataStream: Specify the stream's name (e.g. "Conductor Monitoring LFA example.com") and pick the website for which you want to configure the Akamai DataStream in the **Properties** list:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-stream-configuration_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=8df651774168eb0d47a7162e557f6717" alt="contentking-lfa-akamai-stream-configuration@2x.png" width="2061" height="1560" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-stream-configuration_2x.png" />
4. Configure the Data Sets:\
   **Important:** ***The log format needs to be JSON***.\
   Choose the following *required* data sets to be sent to the AWS S3 bucket. All the fields listed below need to be selected for the Log File Analysis feature to work properly. You can also add other data sets, but the ones listed below are required.
   * Log information
     * Request ID
     * Request time
   * Message exchange data
     * Client IP
     * HTTP status code
     * Protocol type
     * Request host
     * Request method
     * Request path
     * Request port
     * Response-Content-Type
     * User-Agent
     * SSL version
     * Query string

<Info>
  ### Note

  We require streaming only *non-PII* (non-personally identifiable information) data to our AWS S3.

  To do that, you can filter away non-search engine traffic based on the User Agent string when setting up the DataStream directly in Akamai UI.

  This is covered in the section [Filter away non-search engine traffic](#filter-away-non-search-engine-traffic) below.
</Info>

5. Choose **Amazon S3** as the destination where the data will be streamed:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-delivery_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=eec31452742b177c6344d9631402fda1" alt="contentking-lfa-akamai-delivery@2x.png" width="2062" height="1306" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-delivery_2x.png" />
   * Fill in the **Display name** (e.g. *contentking-lfa-s3-example*).
   * Enter the **Bucket name** generated by Conductor Monitoring to the **Bucket** field.
   * **Path** (default suggested by Akamai): `logs/{%Y}/{%m}/{%d}/{%H}`
   * Enter the **Region** that you selected in Conductor Monitoring:
     * If you've selected US: enter *us-east-2* (located in Ohio)
     * If you've selected EU: enter *eu-central-1* (located in Frankfurt)
   * Enter the **Access key ID** and **Secret access key** from Conductor Monitoring.
   * Once done, click **Validate & Save**.
6. Finish the setup and click **Save stream**:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-summary_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=a7e9ffcaf15fd251b95d5474c1eae898" alt="contentking-lfa-akamai-summary@2x.png" width="838" height="740" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-summary_2x.png" />

<Info>
  ### Important

  After configuring the DataStream, it might take several hours until Akamai sets everything up. Please [let us know](/docs/platform/getting-help-with-conductor-products/) if it takes more than 24 hours.
</Info>

### Associate the created DataStream to the corresponding property

After creating the new DataStream, you need to associate it with the corresponding property in your Akamai account.

1. Log in to your [Akamai Control Center](https://control.akamai.com/apps/home-page/#/home) and click on **Properties** in the navigation bar:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-properties_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=e30c55270c3763f239be343e135bb9cd" alt="contentking-lfa-akamai-properties@2x.png" width="1506" height="1372" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-properties_2x.png" />
2. Click the property which you want to associate with the created DataStream:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-property-groups_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=d627c398b5603aed6e0aed4b7dda9829" alt="contentking-lfa-akamai-property-groups@2x.png" width="2046" height="1078" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-property-groups_2x.png" />
3. Click the **Property Version** being monitored by Conductor Monitoring (this can be either the Staging Version or the Production Version):\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-version_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=31a0e8db8cf07626c0c11fc8b83254e6" alt="contentking-lfa-akamai-version@2x.png" width="2034" height="714" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-version_2x.png" />
4. Scroll to the **DataStream** section in **Property Configuration Settings**. If the **DataStream** section is missing, follow the steps below to add it. If not, skip to the step 5.\
   **<img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-datastream-section_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=07cc8863644889d4b4eac727468c30fd" alt="contentking-lfa-akamai-datastream-section@2x.png" width="1920" height="598" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-datastream-section_2x.png" />**
   1. Scroll all the way down, and click **Edit new version.**\
      **<img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-edit-new-version_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=810091eacc343bcb05926a6da63c0723" alt="contentking-lfa-akamai-edit-new-version@2x.png" width="1950" height="796" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-edit-new-version_2x.png" />**
   2. Scroll down to **Property Configuration Settings**, and click **Add Behavior**.\\
      <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-add-behavior_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=63f91f901b60289efd66b20c1939ad24" alt="contentking-lfa-akamai-add-behavior@2x.png" width="1582" height="658" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-add-behavior_2x.png" />
   3. Search for **DataStream** in the modal that appears and select it.\\
      <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-datastream-behavior_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=6cace1f9c13cd3956207baffbdfd335b" alt="contentking-lfa-akamai-datastream-behavior@2x.png" width="1502" height="962" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-datastream-behavior_2x.png" />
   4. Click **Insert Behavior**.\\
      <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-insert-behavior_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=235407c1df86bce8467079f7954dd11e" alt="contentking-lfa-akamai-insert-behavior@2x.png" width="1514" height="958" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-insert-behavior_2x.png" />
5. In the **DataStream** box in the **Behaviors** list, choose **DataStream2** as the Stream version.\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-datastream2_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=3abc83857d2d472eed0068812218f220" alt="contentking-lfa-akamai-datastream2@2x.png" width="1912" height="674" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-datastream2_2x.png" />
6. In the **DataStream2** section, enable the toggle to **On**, choose the Stream name of the new DataStream you created, and then click the **Save** button:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-stream-name_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=bb64cde8055a271d6e6a009107b48db6" alt="contentking-lfa-akamai-stream-name@2x.png" width="1918" height="838" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-stream-name_2x.png" />

<Info>
  ### Important

  Once this is done, ALL the traffic on your website will be streamed to Conductor Monitoring's AWS S3 bucket. However, Conductor Monitoring will process only search engine visits, and filter out all other traffic, including all PII data.

  Follow the next steps to learn how to filter away non-search engine traffic directly in the Akamai DataStream that you've created in the previous steps.

  These steps are **required**!
</Info>

### Ensure Logging of the User Agent header

1. Go to **Property Configuration Settings** following steps 1 through 3 in the section [Associate the created DataStream to the corresponding property](#associate-the-created-datastream-to-the-corresponding-property).
2. Scroll down to the **Log Request Details** section in **Property Configuration Settings**:\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-log-request-details_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=3499aa8b606f3f6bb925f85546142772" alt="contentking-lfa-akamai-log-request-details@2x.png" width="1946" height="1056" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-log-request-details_2x.png" />In case the **Log Request Details** section is not there, follow the same steps as within step 4. in the section [Associate the created DataStream to the corresponding property](#associate-the-created-datastream-to-the-corresponding-property) to add it.
3. Enable the "Log User-Agent header" and click the **Save** button:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-log-ua-header_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=5278dd2726e427a51e56909a3985ccdb" alt="contentking-lfa-akamai-log-ua-header@2x.png" width="1946" height="1056" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-log-ua-header_2x.png" />

### Filter away non-search engine traffic

1. Go to **Property Configuration Settings** following steps 1 through 3 in the section [Associate the created DataStream to the corresponding property](#associate-the-created-datastream-to-the-corresponding-property), and click **Add Rule**:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-add-rule_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=56873bde0b81e65510124b165f174e16" alt="contentking-lfa-akamai-add-rule@2x.png" width="1980" height="754" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-add-rule_2x.png" />
2. Insert the rule for specific User Agents: choose a **Blank rule template**, then give it a name (e.g. *"Enable DataStream for specific user agents"*), and click **Insert rule**:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-blank-rule-template_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=b03e46a3539f83f276708a17f45d10ac" alt="contentking-lfa-akamai-blank-rule-template@2x.png" width="1586" height="974" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-blank-rule-template_2x.png" />
3. Click **Add Behavior** and add **DataStream** behavior following steps 4.3 and 4.4. in [Associate the created DataStream to the corresponding property](#associate-the-created-datastream-to-the-corresponding-property):\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-add-behavior_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=63f91f901b60289efd66b20c1939ad24" alt="contentking-lfa-akamai-add-behavior@2x.png" width="1582" height="658" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-add-behavior_2x.png" />
4. Click **Add Match** and set up the criteria for the User Agent to match:\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-add-match_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=877e7fd9708467ffcc3f3ea560507222" alt="contentking-lfa-akamai-add-match@2x.png" width="1584" height="962" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-add-match_2x.png" />\
   Example:\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-criteria_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=1482459699dcca6b7b449fc59e694c1c" alt="contentking-lfa-akamai-criteria@2x.png" width="1152" height="398" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-criteria_2x.png" />\
   User agent is one of:
   * *Googlebot*
   * *bingbot*
   * *PerplexityBot*
   * *Perplexity-User*
   * *OAI-SearchBot*
   * *ChatGPT-User*
   * *GPTBot*
5. Finally, click **Save**:\\
   <img src="https://mintcdn.com/conductor-0f65a05d/8GiJK_LzAbaM_dYD/images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-save_2x.png?fit=max&auto=format&n=8GiJK_LzAbaM_dYD&q=85&s=a97d6ed6087d353cb8bec9271c4bf349" alt="contentking-lfa-akamai-save@2x.png" width="1742" height="1248" data-path="images/monitoring/setting-up-the-akamai-integration--contentking-lfa-akamai-save_2x.png" />

<Info>
  ### Tip

  If you want to learn how to work with the Log File Analysis data in Conductor Monitoring, refer to our [Log File Analysis](/docs/monitoring/log-file-analysis/) article.
</Info>

### Reinstalling the Akamai DataStream

If you want to change the AWS S3 bucket region, or reinstall the Akamai DataStream, you can do it in the following way:

1. Click on the website on which you want to reinstall the Akamai DataStream in the [Websites section](https://app.contentkingapp.com/account/websites?view=list) of Conductor Monitoring.
2. Click **Log File Analysis** in **Settings**, and then on the **reinstall** link under **Log Sources**.
3. If needed change the region, and click **Create bucket**.
4. Create a new DataStream by following [the steps above](#2-configuring-the-akamai-datastream).

## Disabling Log File Analysis

Same as with enabling Log File Analysis, you need to disable the feature in Conductor Monitoring and then remove the Akamai DataStream in the Akamai UI.

### Disabling Log File Analysis

1. Click on the website on which you want to disable Log File Analysis in the [Websites section](https://app.contentkingapp.com/account/websites?view=list) of Conductor Monitoring.
2. Click the **Log File Analysis** in the **Settings** section.
3. Disable the **Log File Analysis** toggle.

Once this is done, Conductor Monitoring will automatically disable Akamai DataStream access to the AWS S3 bucket where the data was streamed.

### Removing the Akamai DataStream

If you have disabled the Log File Analysis feature, you still need to remove the Akamai DataStream in your Akamai account.

This needs to be done manually, as Conductor Monitoring doesn't have access to your Akamai account.

### Security FAQs

For the most common security-related questions about Conductor Monitoring's Log File Analysis, refer to the FAQ section in the [Log File Analysis FAQs](/docs/monitoring/log-file-analysis-faqs/) article
