# Collect Fortinet FortiEDR logs

**Parser Version:** 8.0
Supported in:

This document explains how to ingest Fortinet FortiEDR logs to Google Security Operations using Cloud Storage V2 or Bindplane agent.

Fortinet FortiEDR is an endpoint detection and response solution that provides real-time protection, automated incident response, and threat intelligence for endpoints across an organization.

## Collection method differences

This guide provides two collection methods:

- **Option 1: Syslog via Bindplane agent**: FortiEDR sends syslog messages to Bindplane agent, which forwards logs to Google SecOps. Recommended for real-time log ingestion with minimal infrastructure.
- **Option 2: Syslog to GCS via Cloud Function**: FortiEDR sends syslog messages to a Cloud Run function, which writes logs to Cloud Storage for Google SecOps ingestion. Recommended for centralized log storage and batch processing.

Choose the method that best fits your infrastructure and requirements.

## Option 1: Collect Fortinet FortiEDR logs using Bindplane agent

### Before you begin

Ensure that you have the following prerequisites:

- Google SecOps instance
- Windows Server 2016 or later, or Linux host with systemd
- Network connectivity between Bindplane agent and Fortinet FortiEDR Central Manager
- If running behind a proxy, ensure firewall ports are open per the Bindplane agent requirements
- Privileged access to the Fortinet FortiEDR management console
- FortiEDR version 5.0 or later

### Get Google SecOps credentials for the Bindplane agent

To authenticate the Bindplane agent to Google SecOps, choose one of the following methods:

- **New deployments**: Use the Chronicle API (Option 1).
- **Legacy deployments**: Continue using the ingestion authentication file (Option 2) until the Ingestion API is discontinued on July 20, 2027.

#### Option 1: Create a service account for the Chronicle API (recommended)

1. Sign in to the [Google Cloud console](https://console.cloud.google.com/) and select the Google Cloud project that is linked to your Google SecOps instance.
2. Go to **IAM \& Admin \> Service Accounts**.
3. Click **Create service account**.
4. Provide the following configuration details:
   - **Service account name** : Enter a name for the account (for example, `bindplane-ingest`).
   - **Service account description** : Enter a description (for example, `Bindplane agent log ingestion`).
5. Click **Create and continue**.
6. In the **Grant this service account access to project** section, click **Select a role** and select **Chronicle Editor**.
7. Click **Continue** , and then click **Done**.
8. Click the service account you created, and then go to the **Keys** tab.
9. Click **Add key \> Create new key**.
10. Select **JSON** and click **Create**. The key file is downloaded to your computer.
11. Save the key file as `ingestion-auth.json` in the Bindplane collector directory (`/opt/observiq-otel-collector/ingestion-auth.json` on Linux or `C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json` on Windows), or update `creds_file_path` in `config.yaml` to match the path where you save it.
12. Go to **IAM \& Admin \> Settings** and copy the **Project number**. You'll need it for the exporter configuration.

> [!NOTE]
> **Note:** The JSON key is a credential. Restrict access to the file on the Bindplane host and rotate the key according to your organization's policy.

#### Option 2: Download the ingestion authentication file (legacy)

1. Sign in to the Google SecOps console.
2. Go to **Settings \> Data Management \> Collection Agents** . If you are on a SIEM-only platform, go to **Settings \> Collection Agents**.
3. Download the **ingestion authentication file**.
4. Save the file securely on the system where the Bindplane agent will be installed.

> [!NOTE]
> **Note:** This file authenticates the agent to the legacy Ingestion API (`malachiteingestion-pa.googleapis.com`), which Google has scheduled for end of life on July 20, 2027. Plan to move to Option 1 before that date.

### Get Google SecOps customer ID

1. Sign in to the Google SecOps console.
2. Go to **Settings \> Administration \> Profile** . If you are on a SIEM-only platform, go to **Settings \> Profile**.
3. Copy and save the **Customer ID** from the **Organization Details** section.

   > [!NOTE]
   > **Note:** The customer ID is required for configuring the Bindplane agent exporter.

### Install Bindplane agent

Install the Bindplane agent on your Windows or Linux operating system according to the following instructions.

#### Windows installation

1. Open **Command Prompt** or **PowerShell** as an administrator.
2. Run the following command:

       msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet

3. Wait for the installation to complete.

4. Verify the installation by running:

       sc query observiq-otel-collector

The service should show as **RUNNING**.

#### Linux installation

1. Open a terminal with root or sudo privileges.
2. Run the following command:

   ```bash
   sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
   ```
3. Wait for the installation to complete.

4. Verify the installation by running:

   ```bash
   sudo systemctl status observiq-otel-collector
   ```

The service should show as **active (running)**.

#### Additional installation resources

For additional installation options and troubleshooting, see [Bindplane agent installation guide](https://docs.cloud.google.com/chronicle/docs/ingestion/use-bindplane-agent.md.txt#install_the_bindplane_agent).

> [!NOTE]
> **Note:** The Chronicle API exporter configuration requires Bindplane collector v1.106.0 or later. The previous commands install the latest release. If you're updating an existing installation, upgrade the collector before changing the configuration.

### Configure Bindplane agent to ingest syslog and send to Google SecOps

#### Locate the configuration file

**Linux:**

```bash
sudo nano /opt/observiq-otel-collector/config.yaml
```

**Windows:**

    notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"

#### Edit the configuration file

Replace the entire contents of `config.yaml` with the following configuration:

```yaml
receivers:
  tcplog:
    listen_address: "0.0.0.0:514"

exporters:
  chronicle/fortiedr:
    protocol: https
    # Region of your instance, for example us, europe, asia-southeast1
    location: <LOCATION>
    # Project number of the Google Cloud project linked to the instance
    project: '<PROJECT_NUMBER>'
    compression: gzip
    creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
    customer_id: 'YOUR_CUSTOMER_ID'
    endpoint: chronicle.googleapis.com
    log_type: FORTINET_FORTIEDR
    raw_log_field: body
    ingestion_labels:
      env: production

service:
  pipelines:
    logs/fortiedr_to_chronicle:
      receivers:
        - tcplog
      exporters:
        - chronicle/fortiedr
```

#### Configuration parameters

Replace the following placeholders:

**Receiver configuration:**

- `listen_address`: IP address and port to listen on. Use `0.0.0.0:514` to listen on all interfaces on port 514.

**Exporter configuration:**

- `creds_file_path`: Full path to the service account JSON key file (Option 1):
  - **Linux** : `/opt/observiq-otel-collector/ingestion-auth.json`
  - **Windows** : `C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json`
- `customer_id`: Customer ID from the previous step.
- `location`: Replace `<LOCATION>` with the region of your Google SecOps instance (for example, `us`, `europe`, or `asia-southeast1`). The exporter prefixes `chronicle.googleapis.com` with this value. See [Regional Endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest.md.txt?rep_location=us#regional-service-endpoint) for the complete list.
- `project`: Replace `<PROJECT_NUMBER>` with the project number from **IAM \& Admin \> Settings**.
- `endpoint`: Keep set to `chronicle.googleapis.com`.
- `ingestion_labels`: Optional labels in YAML format.

#### Legacy ingestion API exporter

- If you use the ingestion authentication file from Option 2, replace the `exporters` block with the following. Set `creds_file_path` to the path to the ingestion authentication file, and if your instance is outside the US, replace `malachiteingestion-pa.googleapis.com` with your [regional endpoint](https://docs.cloud.google.com/chronicle/docs/reference/ingestion-api.md.txt#regional-endpoints) (for example, `europe-malachiteingestion-pa.googleapis.com`).

  ```yaml
  exporters:
    chronicle/fortiedr:
      compression: gzip
      creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
      customer_id: 'YOUR_CUSTOMER_ID'
      endpoint: malachiteingestion-pa.googleapis.com
      log_type: FORTINET_FORTIEDR
      raw_log_field: body
      ingestion_labels:
        env: production
  ```

> [!NOTE]
> **Note:** This exporter will stop working when the Ingestion API is discontinued on July 20, 2027.

#### Save the configuration file

After editing, save the file:

- **Linux** : Press `Ctrl+O`, then `Enter`, then `Ctrl+X`
- **Windows** : Click **File \> Save**

## Restart Bindplane agent to apply the changes

- Linux

  ```bash
  sudo systemctl restart observiq-otel-collector
  ```
  1. Verify the service is running:

     ```bash
     sudo systemctl status observiq-otel-collector
     ```
  2. Check logs for errors:

     ```bash
     sudo journalctl -u observiq-otel-collector -f
     ```
- Windows

  Choose one of the following options:
  - Using Command Prompt or PowerShell as administrator:

        net stop observiq-otel-collector && net start observiq-otel-collector

  - Using Services console:

    1. Press `Win+R`, type `services.msc`, and press **Enter**.
    2. Locate **observIQ OpenTelemetry Collector**.
    3. Right-click and select **Restart**.

    4. Verify the service is running:

           sc query observiq-otel-collector

    5. Check logs for errors:

           type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"

### Configure Fortinet FortiEDR syslog forwarding

#### Configure syslog destination

1. Sign in to the **FortiEDR Central Manager** console.
2. Go to **Administration \> Export Settings \> Syslog**.
3. Click the **Define New Syslog** button.
4. In the **Syslog Name** field, enter a descriptive name (for example, `Chronicle-Integration`).
5. In the **Host** field, enter the IP address of the Bindplane agent host.
6. In the **Port** field, enter `514`.
7. In the **Protocol** dropdown, select **TCP**.
8. In the **Format** dropdown, select **Semicolon** (default format with semicolon-separated fields).
9. Click the **Test** button to test the connection to the Bindplane agent.
10. Verify the test is successful.
11. Click the **Save** button to save the syslog destination.

#### Enable syslog notifications per event type

1. In the **Syslog** page, select the syslog destination row you just created.
2. In the **NOTIFICATIONS** pane on the right, use the sliders to enable or disable the destination per event type:
   - **System events**: Enable to send FortiEDR system health events.
   - **Security events**: Enable to send security event aggregations.
   - **Audit trail**: Enable to send audit log events.
3. For each enabled event type, click the button on the right of the event type.
4. Select the checkboxes for the fields you want to include in the syslog messages.
5. Click **Save**.

#### Configure playbook notifications

Syslog messages are only sent for security events that occur on devices assigned to a Playbook policy with the **Send Syslog Notification** option enabled.

1. Go to **Security Settings \> Playbooks**.
2. Select the playbook policy that applies to the devices you want to monitor (for example, **Default Playbook**).
3. In the **Notifications** section, locate the **Syslog** row.
4. Enable the **Send Syslog Notification** option by selecting the checkboxes for the event classifications you want to send:
   - **Malicious**: Security events classified as malicious.
   - **Suspicious**: Security events classified as suspicious.
   - **PUP**: Potentially unwanted programs.
   - **Inconclusive**: Events with inconclusive classification.
   - **Likely Safe**: Events classified as likely safe (optional).
5. Click **Save**.

   > [!NOTE]
   > **Note:** SMTP, Syslog, and Open Ticket must already be configured in **Administration \> Export Settings** before notifications can be sent from playbooks.

## Option 2: Collect Fortinet FortiEDR logs using Cloud Storage

### Before you begin

Ensure that you have the following prerequisites:

- A Google SecOps instance
- A Google Cloud project with Cloud Storage API enabled
- Permissions to create and manage Cloud Storage buckets
- Permissions to manage Identity and Access Management (IAM) policies on Cloud Storage buckets
- Permissions to create Cloud Run services, Pub/Sub topics, and Cloud Scheduler jobs
- Privileged access to Fortinet FortiEDR management console
- FortiEDR version 5.0 or later

### Create Cloud Storage bucket

1. Go to the [Google Cloud console](https://console.cloud.google.com/).
2. Select your project or create a new one.
3. In the navigation menu, go to **Cloud Storage \> Buckets**.
4. Click **Create bucket**.
5. Provide the following configuration details:

   | Setting | Value |
   |---|---|
   | **Name your bucket** | Enter a globally unique name (for example, `fortiedr-logs`) |
   | **Location type** | Choose based on your needs (Region, Dual-region, Multi-region) |
   | **Location** | Select the location (for example, `us-central1`) |
   | **Storage class** | Standard (recommended for frequently accessed logs) |
   | **Access control** | Uniform (recommended) |
   | **Protection tools** | Optional: Enable object versioning or retention policy |

6. Click **Create**.

### Create service account for Cloud Run function

The Cloud Run function needs a service account with permissions to write to Cloud Storage bucket and be invoked by Pub/Sub.

#### Create service account

1. In the Google Cloud console, go to **IAM \& Admin \> Service Accounts**.
2. Click **Create Service Account**.
3. Provide the following configuration details:
   - **Service account name** : Enter `fortiedr-syslog-collector-sa`.
   - **Service account description** : Enter `Service account for Cloud Run function to collect FortiEDR syslog logs`.
4. Click **Create and Continue**.
5. In the **Grant this service account access to project** section, add the following roles:
   1. Click **Select a role**.
   2. Search for and select **Storage Object Admin**.
   3. Click **+ Add another role**.
   4. Search for and select **Cloud Run Invoker**.
   5. Click **+ Add another role**.
   6. Search for and select **Cloud Functions Invoker**.
6. Click **Continue**.
7. Click **Done**.

These roles are required for:

- **Storage Object Admin**: Write logs to Cloud Storage bucket and manage state files
- **Cloud Run Invoker**: Allow Pub/Sub to invoke the function
- **Cloud Functions Invoker**: Allow function invocation

#### Grant IAM permissions on Cloud Storage bucket

Grant the service account write permissions on the Cloud Storage bucket:

1. Go to **Cloud Storage \> Buckets**.
2. Click your bucket name.
3. Go to the **Permissions** tab.
4. Click **Grant access**.
5. Provide the following configuration details:
   - **Add principals** : Enter the service account email (for example, `fortiedr-syslog-collector-sa@PROJECT_ID.iam.gserviceaccount.com`).
   - **Assign roles** : Select **Storage Object Admin**.
6. Click **Save**.

### Create Pub/Sub topic

Create a Pub/Sub topic that Cloud Scheduler will publish to and the Cloud Run function will subscribe to.

1. In the Google Cloud console, go to **Pub/Sub \> Topics**.
2. Click **Create topic**.
3. Provide the following configuration details:
   - **Topic ID** : Enter `fortiedr-syslog-trigger`.
   - Leave other settings as default.
4. Click **Create**.

### Create Cloud Run function to receive syslog

The Cloud Run function will receive syslog messages from FortiEDR via HTTP and write them to Cloud Storage.

1. In the Google Cloud console, go to **Cloud Run**.
2. Click **Create service**.
3. Select **Function** (use an inline editor to create a function).
4. In the **Configure** section, provide the following configuration details:

   | Setting | Value |
   |---|---|
   | **Service name** | `fortiedr-syslog-collector` |
   | **Region** | Select region matching your Cloud Storage bucket (for example, `us-central1`) |
   | **Runtime** | Select **Python 3.12** or later |

5. In the **Trigger (optional)** section:

   1. Click **+ Add trigger**.
   2. Select **HTTPS**.
   3. In **Authentication** , select **Allow unauthenticated invocations**.
   4. Click **Save**.

   > [!NOTE]
   > **Note:** The function will receive syslog messages via HTTP POST from FortiEDR.

6. Scroll to and expand **Containers, Networking, Security**.

7. Go to the **Security** tab:

   - **Service account** : Select the service account (`fortiedr-syslog-collector-sa`).
8. Go to the **Containers** tab:

   1. Click **Variables \& Secrets**.
   2. Click **+ Add variable** for each environment variable:

      | Variable Name | Example Value | Description |
      |---|---|---|
      | `GCS_BUCKET` | `fortiedr-logs` | Cloud Storage bucket name |
      | `GCS_PREFIX` | `fortiedr-syslog` | Prefix for log files |

9. In the **Variables \& Secrets** section, scroll to **Requests**:

   - **Request timeout** : Enter `60` seconds.
10. Go to the **Settings** tab:

    - In the **Resources** section:
      - **Memory** : Select **256 MiB** or higher.
      - **CPU** : Select **1**.
11. In the **Revision scaling** section:

    - **Minimum number of instances** : Enter `0`.
    - **Maximum number of instances** : Enter `10` (or adjust based on expected load).
12. Click **Create**.

13. Wait for the service to be created (1-2 minutes).

14. After the service is created, the **inline code editor** will open automatically.

#### Add function code

1. Enter **main** in the **Entry point** field.
2. In the inline code editor, create two files:

   - First file: **main.py:**

   ```python
   import functions_framework
   from google.cloud import storage
   import json
   import os
   from datetime import datetime, timezone
   from flask import Request

   # Initialize Storage client
   storage_client = storage.Client()

   # Environment variables
   GCS_BUCKET = os.environ.get('GCS_BUCKET')
   GCS_PREFIX = os.environ.get('GCS_PREFIX', 'fortiedr-syslog')

   @functions_framework.http
   def main(request: Request):
       """
       Cloud Run function to receive syslog messages from FortiEDR and write to GCS.

       Args:
           request: Flask Request object containing syslog message
       """

       if not GCS_BUCKET:
           print('Error: Missing GCS_BUCKET environment variable')
           return ('Missing GCS_BUCKET environment variable', 500)

       try:
           # Get request body
           request_data = request.get_data(as_text=True)

           if not request_data:
               print('Warning: Empty request body')
               return ('Empty request body', 400)

           # Parse syslog messages (one per line)
           lines = request_data.strip().split('\n')

           if not lines:
               print('Warning: No syslog messages found')
               return ('No syslog messages found', 400)

           # Get GCS bucket
           bucket = storage_client.bucket(GCS_BUCKET)

           # Write to GCS as NDJSON
           now = datetime.now(timezone.utc)
           timestamp = now.strftime('%Y%m%d_%H%M%S_%f')
           object_key = f"{GCS_PREFIX}/logs_{timestamp}.ndjson"
           blob = bucket.blob(object_key)

           # Convert each line to JSON object with raw syslog message
           records = []
           for line in lines:
               if line.strip():
                   records.append({'raw': line.strip(), 'timestamp': now.isoformat()})

           ndjson = '\n'.join([json.dumps(record, ensure_ascii=False) for record in records]) + '\n'
           blob.upload_from_string(ndjson, content_type='application/x-ndjson')

           print(f"Wrote {len(records)} records to gs://{GCS_BUCKET}/{object_key}")

           return (f"Successfully processed {len(records)} records", 200)

       except Exception as e:
           print(f'Error processing syslog: {str(e)}')
           return (f'Error processing syslog: {str(e)}', 500)
   ```
   - Second file: **requirements.txt:**

       functions-framework==3.*
       google-cloud-storage==2.*
       flask==3.*

3. Click **Deploy** to save and deploy the function.

4. Wait for deployment to complete (2-3 minutes).

5. After deployment, go to the **Trigger** tab and copy the **Trigger URL** (for example, `https://fortiedr-syslog-collector-abc123-uc.a.run.app`).

   > [!NOTE]
   > **Note:** Save this URL for configuring FortiEDR syslog forwarding.

### Configure Fortinet FortiEDR syslog forwarding to Cloud Run function

#### Configure syslog destination

1. Sign in to the **FortiEDR Central Manager** console.
2. Go to **Administration \> Export Settings \> Syslog**.
3. Click the **Define New Syslog** button.
4. In the **Syslog Name** field, enter a descriptive name (for example, `Chronicle-GCS-Integration`).
5. In the **Host** field, enter the Cloud Run function trigger URL hostname (for example, `fortiedr-syslog-collector-abc123-uc.a.run.app`).
6. In the **Port** field, enter `443`.
7. In the **Protocol** dropdown, select **TCP**.
8. In the **Format** dropdown, select **Semicolon** (default format with semicolon-separated fields).
9. Click the **Test** button to test the connection to the Cloud Run function.
10. Verify the test is successful.
11. Click the **Save** button to save the syslog destination.

    > [!NOTE]
    > **Note:** FortiEDR will send syslog messages to the Cloud Run function via HTTPS on port 443.

#### Enable syslog notifications per event type

1. In the **Syslog** page, select the syslog destination row you just created.
2. In the **NOTIFICATIONS** pane on the right, use the sliders to enable or disable the destination per event type:
   - **System events**: Enable to send FortiEDR system health events.
   - **Security events**: Enable to send security event aggregations.
   - **Audit trail**: Enable to send audit log events.
3. For each enabled event type, click the button on the right of the event type.
4. Select the checkboxes for the fields you want to include in the syslog messages.
5. Click **Save**.

#### Configure playbook notifications

Syslog messages are only sent for security events that occur on devices assigned to a Playbook policy with the **Send Syslog Notification** option enabled.

1. Go to **Security Settings \> Playbooks**.
2. Select the playbook policy that applies to the devices you want to monitor (for example, **Default Playbook**).
3. In the **Notifications** section, locate the **Syslog** row.
4. Enable the **Send Syslog Notification** option by selecting the checkboxes for the event classifications you want to send:
   - **Malicious**: Security events classified as malicious.
   - **Suspicious**: Security events classified as suspicious.
   - **PUP**: Potentially unwanted programs.
   - **Inconclusive**: Events with inconclusive classification.
   - **Likely Safe**: Events classified as likely safe (optional).
5. Click **Save**.

   > [!NOTE]
   > **Note:** SMTP, Syslog, and Open Ticket must already be configured in **Administration \> Export Settings** before notifications can be sent from playbooks.

### Test the integration

1. In the **FortiEDR Central Manager** console, go to **Administration \> Export Settings \> Syslog**.
2. Select the syslog destination row.
3. Click the **Test** button to send a test message.
4. Go to **Cloud Run \> Services** in the Google Cloud console.
5. Click on the function name (`fortiedr-syslog-collector`).
6. Click the **Logs** tab.
7. Verify the function executed successfully. Look for:

       Wrote X records to gs://fortiedr-logs/fortiedr-syslog/logs_YYYYMMDD_HHMMSS_MMMMMM.ndjson
       Successfully processed X records

8. Go to **Cloud Storage \> Buckets**.

9. Click your bucket name.

10. Navigate to the prefix folder (`fortiedr-syslog/`).

11. Verify that a new `.ndjson` file was created with the current timestamp.

If you see errors in the logs:

- **Empty request body**: FortiEDR is not sending data to the Cloud Run function
- **Missing GCS_BUCKET environment variable**: Check environment variables are set
- **Permission denied**: Verify service account has Storage Object Admin role on bucket

### Retrieve the Google SecOps service account

Google SecOps uses a unique service account to read data from your Cloud Storage bucket. You must grant this service account access to your bucket.

#### Configure a feed in Google SecOps to ingest Fortinet FortiEDR logs

1. Go to **Settings \> Data Management \> Feeds** . If you are on a SIEM-only platform, go to **Settings \> Feeds**.
2. Click **Add New Feed**.
3. Click **Configure a single feed**.
4. In the **Feed name** field, enter a name for the feed (for example, `FortiEDR Syslog Logs`).
5. Select **Google Cloud Storage V2** as the **Source type**.
6. Select **Fortinet FortiEDR** as the **Log type**.

7. Click **Get Service Account**.

8. A unique service account email will be displayed, for example:

       chronicle-12345678@chronicle-gcp-prod.iam.gserviceaccount.com

9. Copy this email address. You will use it in the next step.

   > [!NOTE]
   > **Note:** Each Google SecOps instance has a unique service account. Do not use service accounts from other documentation or examples.

10. Click **Next**.

11. Specify values for the following input parameters:

    - **Storage bucket URL**: Enter the Cloud Storage bucket URI with the prefix path:

          gs://fortiedr-logs/fortiedr-syslog/

      Replace:
      - `fortiedr-logs`: Your Cloud Storage bucket name.
      - `fortiedr-syslog`: Optional prefix/folder path where logs are stored (leave empty for root).

      > [!NOTE]
      > **Note:** Always include the trailing slash (/) at the end of the URI.

    - **Source deletion option**: Select the deletion option according to your preference:

      - **Never**: Never deletes any files after transfers (recommended for testing).
      - **Delete transferred files**: Deletes files after successful transfer.
      - **Delete transferred files and empty directories**: Deletes files and empty directories after successful transfer.

      > [!NOTE]
      > **Note:** If you select a deletion option, the service account must have **Storage Object Admin** role instead of Storage Object Viewer. Update IAM permissions accordingly.

    - **Maximum File Age**: Include files modified in the last number of days. Default is 180 days.

    - **Asset namespace** : The [asset namespace](https://docs.cloud.google.com/chronicle/docs/investigation/asset-namespaces.md.txt).

    - **Ingestion labels**: The label to be applied to the events from this feed.

12. Click **Next**.

13. Review your new feed configuration in the **Finalize** screen, and then click **Submit**.

### Grant IAM permissions to the Google SecOps service account

The Google SecOps service account needs **Storage Object Viewer** role on your Cloud Storage bucket.

1. Go to **Cloud Storage \> Buckets**.
2. Click your bucket name.
3. Go to the **Permissions** tab.
4. Click **Grant access**.
5. Provide the following configuration details:
   - **Add principals**: Paste the Google SecOps service account email.
   - **Assign roles** : Select **Storage Object Viewer**.
6. Click **Save**.

   > [!NOTE]
   > **Note:** If you plan to use the deletion option "Delete transferred files" or "Delete transferred files and empty directories," grant **Storage Object Admin** role instead of Storage Object Viewer.

## UDM mapping table

| Log field | UDM mapping | Logic |
|---|---|---|
| Country | target.location.country_or_region | Value copied directly if not N/A or empty |
| srccountry | principal.location.country_or_region | Value copied directly if not Reserved or empty |
| dstcountry | target.location.country_or_region | Value copied directly if not empty |
| srcip | principal.ip | Value copied directly |
| dstip | target.ip | Value copied directly if not N/A |
| Destination | target.ip | Extracted as IP from Destination if valid |
| dst | target.ip | Extracted as IP from dst if valid |
| srcmac | principal.mac | Value copied directly |
| dstosname | target.platform | Set to LINUX if matches LINUX; WINDOWS if matches WINDOWS; MAC if matches MAC |
| srcport | principal.port | Converted to integer |
| dstport | target.port | Converted to integer |
| spt | principal.port | Converted to integer |
| dpt | target.port | Converted to integer |
| sessionid | network.session_id | Value copied directly |
| sentbyte | network.sent_bytes | Converted to unsigned integer |
| rcvdbyte | network.received_bytes | Converted to unsigned integer |
| duration | network.session_duration.seconds | Converted to integer |
| action | security_result.summary | Value copied directly |
| level | security_result.severity_details | Set to "level: %{level}" |
| policyid | security_result.rule_id | Value copied directly |
| policyname | security_result.rule_name | Value copied directly |
| policytype | security_result.rule_type | Value copied directly |
| service | target.application | Value copied directly |
| intermediary_ip | target.ip | Value copied directly if message_type is Audit or loginStatus not empty |
| intermediary | intermediary | Value copied directly |
| devname | target.hostname | Value copied directly |
| server_host | target.hostname | Value copied directly if message_type is Audit or loginStatus not empty |
| server_host | intermediary.hostname | Value copied directly as label if not Audit or loginStatus |
| deviceInformation | target.resource.name, target.resource.resource_type | Extracted device_name and set resource_type to DEVICE |
| component_name | additional.fields | Set as label with key "Component Name" |
| process_name | principal.application | Value copied directly |
| Process Path | target.file.full_path | Value copied directly |
| asset_os | target.platform | Set to WINDOWS if matches .*Windows.* ; LINUX if matches .*Linux.* |
| os_version | target.platform_version | Extracted from asset_os |
| asset_os | principal.platform | Set to WINDOWS if matches .*Windows.* ; LINUX if matches .*Linux.* |
| os_version | principal.platform_version | Extracted from asset_os |
| usr_name | userId | Value copied directly |
| Users | userId | Value copied directly if not WG or ADDC |
| id | userId | Value copied directly |
| userId | target.user.userid | Value copied directly if message_type is Audit or loginStatus not empty |
| userId | principal.user.userid | Value copied directly if not Audit or loginStatus |
| userDisplayName | target.user.user_display_name | Value copied directly if message_type is Audit or loginStatus not empty |
| userDisplayName | principal.user.user_display_name | Value copied directly if not Audit or loginStatus |
| userPrincipalName | principal.user.userid | Value copied directly |
| Description | metadata.description | Value copied directly if not empty |
| Details | metadata.description | Value copied directly if not empty |
| mfaResult | metadata.description | Value copied directly if not empty |
| data7 | metadata.description | Value copied directly if not empty |
| message_type | metadata.description | Value copied directly if description_details empty |
| src_ip, srcip | principal.ip | Value from src_ip if not empty, else src, else Source, else ipAddress |
| src_ip | principal.ip | Extracted as IP from src_ip if valid |
| mac_address | principal.mac | Processed as array, converted to lowercase, merged if valid MAC |
| event_id | target.process.pid | Value copied directly if message_type is Audit or loginStatus not empty |
| event_id | metadata.product_log_id | Value copied directly if not Audit or loginStatus |
| event_type | metadata.event_type | Value copied directly |
| Severity | security_result.severity | Set to INFORMATIONAL if Low or empty; MEDIUM if Medium; HIGH if High; CRITICAL if Critical |
| Action | security_result.action | Set to ALLOW if matches (?i)Allow; BLOCK if matches (?i)Block; else action_details |
| security_action | security_result.action | Value copied directly |
| Rule | rules | Value copied directly |
| rules | security_result.rule_name | Value copied directly |
| Classification | security_result.summary | Value copied directly |
| First Seen | security_result.detection_fields | Set as label with key "First Seen" |
| Last Seen | security_result.detection_fields | Set as label with key "Last Seen" |
| Organization | target.administrative_domain | Value copied directly if message_type is Audit or loginStatus not empty |
| Organization | additional.fields | Set as label with key "Organization" if not Audit or loginStatus |
| security_result | security_result | Merged from sec_result |
|   | metadata.vendor_name | Set to "FORTINET" |
|   | metadata.product_name | Set to "FORTINET_FORTIEDR" |
| `Stack Certificates` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Destination` | `event.idm.read_only_udm.security_result.description` | Mapped from changelog |
| `Command line` | `event.idm.read_only_udm.principal.process.command_line` | Mapped from changelog |
| `Process Hash` | `event.idm.read_only_udm.principal.process.file.sha256` | Mapped from changelog |
| `Threat Name` | `event.idm.read_only_udm.security_result.threat_name` | Mapped from changelog |
| `Threat Type` | `event.idm.read_only_udm.security_result.category_details` | Mapped from changelog |
| `Organization ID` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Raw Data ID` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Collector Group` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Device State` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Count` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Deployment` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Certificate` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Script` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Script Path` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Autonomous System` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Remediation Processes` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Remediation Files` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Remote Connection` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Stack Hashes` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `Threat Family` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `Process Type` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `Target` | `event.idm.read_only_udm.target.resource.attribute.labels` | Mapped from changelog |
| `MITRE techniques` | `event.idm.read_only_udm.security_result.attack_details.techniques` | Mapped from changelog |
| `MITRE techniques` | `event.idm.read_only_udm.security_result.attack_details.tactics` | Mapped from changelog |
| `Action` | `sec_result.action_details` | Mapped from changelog |
| `device_name` | `principal.hostname` | Mapped from changelog |
| `Operating System` | `principal.platform` | Mapped from changelog |
| `userId` | `principal.user.userId` | Mapped from changelog |
| `userDisplayName` | `principal.user.userId` | Mapped from changelog |
| `intermediary_ip` | `intermediary.ip` | Mapped from changelog |

## Change Log

[View the Change Log for this parser](https://docs.cloud.google.com/chronicle/docs/ingestion/parser-list/fortinet-fortiedr-changelog.md.txt)

**Need more help?** [Get answers from Community members and Google SecOps professionals.](https://security.googlecloudcommunity.com/)