收集 NetApp ONTAP SAN 日志

支持的平台:

本文档介绍了如何使用 Bindplane 将 NetApp ONTAP SAN 日志注入到 Google Security Operations。NetApp ONTAP 是一种适用于存储系统的数据管理软件平台,可提供 SAN(存储区域网络)服务,包括使用 iSCSI、光纤通道和 NVMe over Fabrics 协议的块级存储。ONTAP SAN 日志可捕获与 LUN 操作、启动器组管理、端口状态更改和存储访问活动相关的事件。

如需了解详情,请参阅收集 NetApp SAN 日志

准备工作

请确保满足以下前提条件:

  • Google SecOps 实例。
  • 搭载 systemd 的 Windows 2016 或更高版本或 Linux 主机。
  • 网络连接:如果 Bindplane 代理在代理后面运行,请确保防火墙端口已根据 Bindplane 代理要求打开。
  • 拥有对 NetApp ONTAP 集群管理界面(ONTAP System Manager 或 CLI)的特权访问权限。
  • 存储系统上运行的 ONTAP 9.x 或更高版本。

获取 Google SecOps 注入身份验证文件

  1. 登录 Google SecOps 控制台
  2. 依次前往 SIEM 设置 > 收集代理
  3. 下载数据注入身份验证文件
    • 将文件安全地保存在将要安装 Bindplane 的系统上。

获取 Google SecOps 客户 ID

  1. 登录 Google SecOps 控制台
  2. 依次前往 SIEM 设置 > 配置文件
  3. 复制并保存组织详细信息部分中的客户 ID

安装 Bindplane 代理

按照以下说明在 Windows 或 Linux 操作系统上安装 Bindplane 代理。

Windows 安装

  1. 以管理员身份打开命令提示符PowerShell
  2. 运行以下命令:

    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
    

Linux 安装

  1. 打开具有 root 或 sudo 权限的终端。
  2. 运行以下命令:

    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
    

其他安装资源

如需了解其他安装选项,请参阅此安装指南

配置 Bindplane 代理以注入 Syslog 并将其发送到 Google SecOps

  1. 访问配置文件:

    • 找到 config.yaml 文件。通常,该文件位于 Linux 上的 /opt/observiq-otel-collector/ 目录或 Windows 上的安装目录中。
    • 使用文本编辑器(例如 nanovi 或记事本)打开该文件。
  2. 按如下方式修改 config.yaml 文件:

    receivers:
      udplog:
        listen_address: "0.0.0.0:514"
    
    exporters:
      chronicle/netapp_san:
        compression: gzip
        creds_file_path: '/path/to/ingestion-authentication-file.json'
        customer_id: '<CUSTOMER_ID>'
        endpoint: malachiteingestion-pa.googleapis.com
        log_type: NETAPP_SAN
        raw_log_field: body
        ingestion_labels:
    
    service:
      pipelines:
        logs/netapp_san_to_chronicle:
          receivers:
            - udplog
          exporters:
            - chronicle/netapp_san
    
  • 根据基础架构的需要替换端口IP 地址
  • <CUSTOMER_ID> 替换为实际的客户 ID。
  • /path/to/ingestion-authentication-file.json 更新为保存身份验证文件的路径。

重启 Bindplane 代理以应用更改

  1. 如需在 Linux 中重启 Bindplane 代理,请运行以下命令:

    sudo systemctl restart observiq-otel-collector
    
  2. 如需在 Windows 中重启 Bindplane 代理,您可以使用服务控制台,也可以输入以下命令:

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

在 NetApp ONTAP 上配置 syslog 转发

使用 ONTAP CLI 配置 syslog

  1. 使用 SSH 连接到 NetApp ONTAP 集群管理 LIF。
  2. 输入以下命令可查看当前事件通知目标:

    cluster1::> event notification destination show
    
  3. 创建指向 Bindplane 代理的 syslog 通知目的地:

    cluster1::> event notification destination create -name bindplane-syslog -syslog <BINDPLANE_IP_ADDRESS> -syslog-port 514 -syslog-transport udp-unencrypted
    
    • <BINDPLANE_IP_ADDRESS> 替换为 Bindplane 代理主机 IP 地址。
  4. 创建事件通知,以将 EMS 事件转发到 syslog 目标位置:

    cluster1::> event notification create -filter-name default-trap-events -destinations bindplane-syslog
    
  5. (可选)创建自定义过滤条件以包含所有事件:

    cluster1::> event filter create -filter-name all-events
    cluster1::> event filter rule add -filter-name all-events -type include -message-name * -severity <=NOTICE
    cluster1::> event notification create -filter-name all-events -destinations bindplane-syslog
    
  6. 验证配置:

    cluster1::> event notification destination show
    cluster1::> event notification show
    

使用 ONTAP System Manager 配置 syslog

  1. 登录 ONTAP System Manager
  2. 依次前往活动和职位 > 活动 > EMS 活动通知
  3. 点击添加以创建通知目的地。
  4. 提供以下配置详细信息:
    • 名称:输入 bindplane-syslog
    • 类型:选择 Syslog
    • Syslog 服务器:输入 Bindplane 代理主机 IP 地址。
    • 端口:输入 514
    • 传输协议:选择 UDP
  5. 点击保存
  6. 创建事件通知规则并将其与 bindplane-syslog 目的地相关联。
  7. 选择事件过滤条件(例如 default-trap-events 或自定义过滤条件)。
  8. 点击保存

如需了解详情,请参阅 NetApp ONTAP EMS 配置文档

UDM 映射表

日志字段 UDM 映射 逻辑
desc metadata.description 直接映射
datetime metadata.event_timestamp 解析为 MMM d HH:mm:ss
ip principal.ip 已合并
port principal.port 直接映射
userid principal.user.userid 直接映射
sr security_result 已合并
不适用 metadata.event_type 常量:STATUS_UPDATE
不适用 metadata.product_name 常量:Storage Area Network
不适用 metadata.vendor_name 常量:NetApp

更新日志

查看相应解析器的更改日志

需要更多帮助?获得社区成员和 Google SecOps 专业人士的解答。