# Collect Fortinet FortiAnalyzer logs

**Parser Version:** 35.0
Supported in:

This guide explains how you can ingest Fortinet FortiAnalyzer logs to Google Security Operations using Bindplane.

Fortinet FortiAnalyzer is a centralized log management, analytics, and reporting platform for Fortinet Security Fabric devices. It aggregates logs from FortiGate firewalls, FortiMail, FortiWeb, FortiSandbox, and other Fortinet products to provide unified visibility, event correlation, and compliance reporting. FortiAnalyzer can forward aggregated logs via syslog to external SIEM platforms for further analysis.

## Before you begin

Make sure you have the following prerequisites:

- A Google SecOps instance.
- Windows Server 2016 or later, or Linux host with `systemd`.
- Network connectivity between the Bindplane agent and the FortiAnalyzer appliance.
- If running behind a proxy, ensure firewall ports are open per the Bindplane agent requirements.
- Privileged access to the Fortinet FortiAnalyzer management console (Super_User or equivalent administrator role).

## 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.

## Install the 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](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:

       sudo sh -c "$(curl -fsSlL [https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh](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:

       sudo systemctl status observiq-otel-collector

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

### Additional installation resources

For additional installation options and troubleshooting, see the [Bindplane agent installation guide](https://docs.cloud.google.com/chronicle/docs/ingestion/use-bindplane-agent#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 the 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:** `cmd
  notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"`

### Edit the configuration file

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

      receivers:
        tcplog:
          # Replace the port and IP address as required
          listen_address: "0.0.0.0:514"

      exporters:
        chronicle/fortianalyzer:
          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
          # Adjust the path to the credentials file you downloaded in Step 1
          creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
          # Replace with your actual customer ID from Step 2
          customer_id: 'your-customer-id-here'
          endpoint: chronicle.googleapis.com
          log_type: FORTINET_FORTIANALYZER
          raw_log_field: body
          ingestion_labels:
            env: production

      service:
        pipelines:
          logs/fortianalyzer_to_chronicle:
            receivers:
              - tcplog
            exporters:
              - chronicle/fortianalyzer

### Configuration parameters

- **Receiver configuration:**
  - `listen_address`: IP address and port to listen on. Use `0.0.0.0` to listen on all interfaces. Change the port if needed (for example, `1514`).
- **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`: Your Google SecOps customer ID.
  - `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?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 (for example, `env: production`).

### 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#regional-endpoints) (for example, `europe-malachiteingestion-pa.googleapis.com`).

      exporters:
        chronicle/fortianalyzer:
          compression: gzip
          # Adjust the path to the credentials file you downloaded in Step 1
          creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
          # Replace with your actual customer ID from Step 2
          customer_id: 'your-customer-id-here'
          endpoint: malachiteingestion-pa.googleapis.com
          log_type: FORTINET_FORTIANALYZER
          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 the Bindplane agent to apply the changes

To restart the Bindplane agent in Linux:

1. Run the following command:

       sudo systemctl restart observiq-otel-collector

2. Verify the service is running:

       sudo systemctl status observiq-otel-collector

3. Check logs for errors:

       sudo journalctl -u observiq-otel-collector -f

To restart the Bindplane agent in Windows:

1. Choose one of the following options:

   - Command Prompt or PowerShell as administrator:

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

   - Services console:
     1. Press `Win+R`, type `services.msc`, and press Enter.
     2. Locate **observIQ OpenTelemetry Collector**.
     3. Right-click and select **Restart**.
2. Verify the service is running:

       sc query observiq-otel-collector

3. Check logs for errors:

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

## Configure FortiAnalyzer syslog forwarding

Configure FortiAnalyzer to forward logs to the Bindplane agent using syslog output.

### Configure syslog server in FortiAnalyzer

1. Sign in to the **FortiAnalyzer** web interface.
2. Go to **System Settings** \> **Log Forwarding**.
3. Click **Create New** to add a new log forwarding rule.
4. Provide the following configuration details:
   - **Name** : Enter a descriptive name (for example, `Chronicle-Bindplane`).
   - **Status** : Select **Enable**.
   - **Remote Server Type** : Select **Syslog**.
   - **Server IP/FQDN**: Enter the IP address of the Bindplane agent host.
   - **Server Port** : Enter `514` (or the port configured in the Bindplane agent).
   - **Reliable syslog (RFC 6587)** : Select **Enable** to use TCP transport.
   - **Log Forwarding Format** : Select **Default** or **CEF** based on your requirements.
5. In the **Log Filters** section, configure the log types to forward:
   - Select the **ADOM** (Administrative Domain) from which to forward logs.
   - Select the device types and log categories to include (Traffic, Event, Security, DNS, SSH, SSL logs).
6. Click **OK** to save the configuration.

### Verify log forwarding

1. Go to **System Settings** \> **Log Forwarding**.
2. Verify the forwarding rule shows status as **Enabled**.
3. Monitor the **Statistics** column to confirm logs are being forwarded.
4. Verify logs are being received by checking the Bindplane agent logs.

> [!NOTE]
> **Note:** For FortiAnalyzer CLI-based configuration, refer to the Fortinet FortiAnalyzer Administration Guide for the `config system log-forward` command.

## UDM mapping table

| Log Field | UDM Mapping | Logic |
|---|---|---|
| `devname` | `principal.hostname` | Taken from `devname`. |
| `srcip` | `principal.ip` | Taken from `srcip`. |
| `srcport` | `principal.port` | Converted to integer. |
| `srcintf` | `additional.fields` | Key: `srcintf`. |
| `dstip` | `target.ip` | Taken from `dstip`. |
| `dstport` | `target.port` | Converted to integer. |
| `dstintf` | `additional.fields` | Key: `dstintf`. |
| `proto` | `network.ip_protocol` | Mapped (6=TCP, 17=UDP, 1=ICMP). |
| `action` | `security_result.action` | `accept/pass` → **ALLOW** ; `deny/drop/block` → **BLOCK**. |
| `policyid` | `security_result.rule_id` | Taken from `policyid`. |
| `policyname` | `security_result.rule_name` | Taken from `policyname`. |
| `user` | `principal.user.userid` | Taken from `user`. |
| `app` | `target.application` | Taken from `app`. |
| `sentbyte` | `network.sent_bytes` | Converted to unsigned integer. |
| `rcvdbyte` | `network.received_bytes` | Converted to unsigned integer. |
| `severity` | `security_result.severity` | `information` → **INFORMATIONAL** , `warning` → **MEDIUM** , `error` → **ERROR** , `critical/alert/emergency` → **HIGH**. |
| `logid` | `metadata.product_log_id` | Taken from `logid`. |
| `type` | `metadata.product_event_type` | Taken from `type`. |
| `subtype` | `metadata.product_event_type` | Appended to type. |
| `level` | `security_result.severity_details` | Taken from `level`. |
| N/A | `metadata.vendor_name` | Set to **Fortinet**. |
| N/A | `metadata.product_name` | Set to **FortiAnalyzer**. |
| `attack` | `event.idm.read_only_udm.security_result.description` | Mapped from changelog |
| `msg` | `event.idm.read_only_udm.security_result.category_details` | Mapped from changelog |
| `alert_sub_type` | `event.idm.read_only_udm.security_result.category_details` | Mapped from changelog |
| `Details.SourcePort` | `event.idm.read_only_udm.principal.port` | Mapped from changelog |
| `Details.DestinationPort` | `event.idm.read_only_udm.target.port` | Mapped from changelog |
| `inter_host` | `event.idm.read_only_udm.intermediary.hostname` | Mapped from changelog |
| `observer_application` | `event.idm.read_only_udm.observer.application` | Mapped from changelog |
| `event_time` | `event.idm.read_only_udm.metadata.event_timestamp` | Mapped from changelog |
| `alert_time` | `event.idm.read_only_udm.metadata.collected_timestamp` | Mapped from changelog |
| `details.Bios` | `event.idm.read_only_udm.principal.asset.product_object_id` | Mapped from changelog |
| `details.HostName` | `event.idm.read_only_udm.principal.hostname` and `event.idm.read_only_udm.principal.asset.hostname` | Mapped from changelog |
| `details.IP` | `event.idm.read_only_udm.principal.nat_ip` | Mapped from changelog |
| `agent_uuid` | `event.idm.read_only_udm.principal.asset.asset_id` | Mapped from changelog |
| `alert_name` | `event.idm.read_only_udm.security_result.rule_name` | Mapped from changelog |
| `Details.SourceAddress` | `event.idm.read_only_udm.principal.ip` and `event.idm.read_only_udm.principal.asset.ip` | Mapped from changelog |
| `Details.DestinationAddress` | `event.idm.read_only_udm.target.ip` and `event.idm.read_only_udm.target.asset.ip` | Mapped from changelog |
| `Details.Protocol` | `event.idm.read_only_udm.network.ip_protocol` | Mapped from changelog |
| `ref` | `event.idm.read_only_udm.security_result.about.url` | Mapped from changelog |
| `Details.status` | `event.idm.read_only_udm.security_result.summary` | Mapped from changelog |
| `log_verbosity` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `root_scope_id` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `timestamp_details` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `observer_application_pid` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Details.ConsumerScopes` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `Details.ProviderScopes` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `user_dst_location` | `event.idm.read_only_udm.target.resource.attribute.labels` | Mapped from changelog |
| `user_dst_network_zone` | `event.idm.read_only_udm.target.resource.attribute.labels` | Mapped from changelog |
| `user_dst_ownership` | `event.idm.read_only_udm.target.resource.attribute.labels` | Mapped from changelog |
| `host_name` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `forwardedfor` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `tenant_id` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `details.AgentType` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `details.CurrentVersion` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `details.Platform` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `scope_name` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `scope_id` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `vrf_id` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `Details.user_src_app_name` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `Details.user_src_environment` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `Details.user_src_location` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `Details.user_src_network_zone` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `Details.user_src_ownership` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `severity` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `alert_text` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `attackid` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `key_id` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `individual_alert` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `summary_alert_freq` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `alert_grain` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `IsConsumerMalicious` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `IsProviderMalicious` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `from` | `event.idm.read_only_udm.network.email.from` | Mapped from changelog |
| `to` | `event.idm.read_only_udm.network.email.to` | Mapped from changelog |
| `subject` | `event.idm.read_only_udm.network.email.subject` | Mapped from changelog |
| `size` | `event.idm.read_only_udm.network.sent_bytes` | Mapped from changelog |
| `attachment` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `qtype` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `xid` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `action` | `event.idm.read_only_udm.security_result.action` to `ALLOW` when `action` is equal to `ip-conn` | Mapped from changelog |
| `unauthuser` | `event.idm.read_only_udm.principal.user.userid` | Mapped from changelog |
| `user_name` | `event.idm.read_only_udm.principal.user.userid` | Mapped from changelog |
| `app_protocol_src` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `cloudaction` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `itime` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `shapingpolicyname` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `mastersrcmac` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `dstdevtype` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `eventsubtype` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `pdstport` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `psrcport` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `clouduser` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `unauthusersource` | `event.idm.read_only_udm.additional.fields` | Mapped from changelog |
| `devid` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `incidentserialno` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `poluuid` | `event.idm.read_only_udm.security_result.detection_fields` | Mapped from changelog |
| `http_retcode` | `event.idm.read_only_udm.network.http.response_code` | Mapped from changelog |
| `http_method` | `event.idm.read_only_udm.network.http.method` | Mapped from changelog |
| `http_url` | `event.idm.read_only_udm.target.url` | Mapped from changelog |
| `http_agent` | `event.idm.read_only_udm.network.http.user_agent` | Mapped from changelog |
| `srcfamily` | `event.idm.read_only_udm.principal.resource.attribute.labels` | Mapped from changelog |
| `cipher_suite` | `event.idm.read_only_udm.network.tls.cipher` | Mapped from changelog |
| `policy` | `event.idm.read_only_udm.security_result.rule_name` | Mapped from changelog |
| `http_response_bytes` | `event.idm.read_only_udm.network.received_bytes` | Mapped from changelog |
| `http_request_bytes` | `event.idm.read_only_udm.network.sent_bytes` | Mapped from changelog |
| `osname` | `event.idm.read_only_udm.principal.platform` | Mapped from changelog |
| `dstosname` | `event.idm.read_only_udm.target.platform` | Mapped from changelog |
| `scertcname` | `event.idm.read_only_udm.network.tls.client.certificate.subject` | Mapped from changelog |
| `dstswversion` | `event.idm.read_only_udm.target.platform_version` | Mapped from changelog |
| `dsthwvendor` | `event.idm.read_only_udm.target.resource.attribute.labels` | Mapped from changelog |
| `filesize` | `event.idm.read_only_udm.target.file.size` | Mapped from changelog |
| `http_version` | `event.idm.read_only_udm.network.application_protocol_version` | Mapped from changelog |
| `x509_cert_subject` | `event.idm.read_only_udm.network.tls.server.certificate.subject` | Mapped from changelog |
| `srcswversion` | `event.idm.read_only_udm.principal.platform_version` | Mapped from changelog |
| `tlsver` | `event.idm.read_only_udm.network.tls.version` | Mapped from changelog |
| `original_src` | `event.idm.read_only_udm.principal.ip` | Mapped from changelog |
| `http_host` | `event.idm.read_only_udm.target.hostname` | Mapped from changelog |
| `http_refer` | `event.idm.read_only_udm.network.http.referral_url` | Mapped from changelog |
| `agent` | `event.idm.read_only_udm.network.http.user_agent` and `event.idm.read_only_udm.network.http.parsed_user_agent` | Mapped from changelog |
| `dstname` | `target.hostname` | Mapped from changelog |
| `catdesc` | `security_result.rule_name` | Mapped from changelog |
| `crscore` | `security_result.detection_fields` | Mapped from changelog |
| `method` | `network.http.method` | Mapped from changelog |
| `filename` | `target.file.full_path` | Mapped from changelog |
| `dstuser` | `target.user.userid` | Mapped from changelog |
| `fsaverdict` | `additional.fields` | Mapped from changelog |
| `type", "subtype", and "level` | `metadata.ingestion_labels` | Mapped from changelog |
| `logdesc` | `metadata.description` | Mapped from changelog |
| `srcname` | `principal.hostname` | Mapped from changelog |
| `httpmethod` | `network.http.method` | Mapped from changelog |

## Change Log

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

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