收集 Cisco CTS 日志

解析器版本: 6.0

支持:

本文档介绍了如何使用 Bindplane 代理将 Cisco CTS 日志注入 Google Security Operations。

Cisco TelePresence System (CTS) 是指旧版视频会议硬件端点,包括 CTS 500、CTS 1000、CTS 1100、CTS 1300、CTS 3000、CTS 3200 和 TX 系列系统。这些沉浸式远程呈现会议室系统提供高清视频会议功能,并通过 Cisco Unified Communications Manager (CUCM) 进行管理。这些系统会针对系统操作、通话活动和问题排查生成 syslog 消息。

准备工作

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

  • Google SecOps 实例
  • Windows Server 2016 或更高版本,或者具有 systemd 的 Linux 主机
  • Bindplane 代理与 Cisco TelePresence System 之间的网络连接
  • 如果通过代理运行,请确保防火墙端口根据 Bindplane 代理要求处于打开状态
  • 对 Cisco Unified Communications Manager (CUCM) 的管理员访问权限
  • 对 Cisco TelePresence System 管理界面的管理员访问权限
  • 从 CTS 编解码器到 UDP 端口 514(或配置的端口)上的 Bindplane 代理的网络连接

获取 Bindplane 代理的 Google SecOps 凭据

如需向 Google SecOps 验证 Bindplane 代理,请选择以下方法之一:

  • 新部署:使用 Chronicle API(方法 1)。
  • 旧版部署:继续使用注入身份验证文件(方法 2),直到注入 API 于 2027 年 7 月 20 日停用为止。
  1. 登录 Google Cloud 控制台,然后选择与您的 Google SecOps 实例关联的 Google Cloud 项目。
  2. 依次前往 IAM 和管理 > 服务账号。
  3. 点击创建服务账号 。
  4. 提供以下配置详细信息:
    • 服务账号名称:输入账号的名称(例如 bindplane-ingest)。
    • 服务账号说明:输入说明(例如 Bindplane agent log ingestion)。
  5. 点击创建并继续 。
  6. 在向此服务帐号授予对项目的访问权限 部分中,点击选择角色 ,然后选择 Chronicle Editor 。
  7. 点击继续 ,然后点击完成 。
  8. 点击您创建的服务帐号,然后前往密钥 标签页。
  9. 依次点击添加密钥 > 创建新密钥。
  10. 选择 JSON ,然后点击创建 。密钥文件会下载到您的计算机上。
  11. 将密钥文件另存为 Bindplane 收集器目录中的 ingestion-auth.json(在 Linux 上为 /opt/observiq-otel-collector/ingestion-auth.json,在 Windows 上为 C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json),或者更新 creds_file_path 在 config.yaml 中以与您保存该文件的路径匹配。
  12. 依次前往 IAM 和管理 > 设置 ,然后复制项目编号 。您需要此编号进行导出器配置。

方法 2:下载注入身份验证文件(旧版)

  1. 登录 Google SecOps 控制台。
  2. 依次前往 SIEM 设置 > 收集代理。
  3. 下载注入身份验证文件 。
  4. 将该文件安全地保存在将安装 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" /quiet
      
    3. 等待安装完成。

    4. 运行以下命令,验证安装是否成功:

      sc query observiq-otel-collector
      

      该服务应显示为 RUNNING 。

  • Linux 安装

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

      sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
      
    3. 等待安装完成。

    4. 运行以下命令,验证安装是否成功:

      sudo systemctl status observiq-otel-collector
      

      该服务应显示为 active (running) 。

其他安装资源

如需了解其他安装选项和问题排查信息,请参阅 Bindplane 代理安装指南。

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

找到配置文件

  • Linux:

    sudo nano /opt/observiq-otel-collector/config.yaml
    
  • Windows:

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

修改配置文件

  1. 将 config.yaml 的全部内容替换为以下配置:

    receivers:
        udplog:
            listen_address: "0.0.0.0:514"
    
    exporters:
        chronicle/cisco_cts:
            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: CISCO_CTS
            raw_log_field: body
    
    service:
        pipelines:
            logs/cts_to_chronicle:
                receivers:
                    - udplog
                exporters:
                    - chronicle/cisco_cts
    
  2. 替换以下占位符:

    • 接收器配置:

      • 接收器使用 udplog 进行 UDP syslog(CTS 设备的标准)
      • listen_address 设置为 0.0.0.0:514,以监听 UDP 端口 514 上的所有接口
      • 对于以非 root 身份运行的 Linux 系统,请将端口更改为 1514 或更高
    • 导出器配置:

      • creds_file_path:服务帐号 JSON 密钥文件的完整路径(方法 1):
        • Linux: /opt/observiq-otel-collector/ingestion-auth.json
        • Windows: C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
      • customer_id:将 YOUR_CUSTOMER_ID 替换为您的 customer ID。如需了解详情,请参阅获取 Google SecOps 客户 ID。
      • location:将 <LOCATION> 替换为 Google SecOps 实例的区域(例如 us、europe 或 asia-southeast1)。导出器会使用此值为 chronicle.googleapis.com 添加前缀。如需查看完整列表,请参阅区域级端点。
      • project:将 <PROJECT_NUMBER> 替换为 IAM 和管理 > 设置 中的项目编号。
      • endpoint:保持设置为 chronicle.googleapis.com。
      • log_type:设置为 CISCO_CTS(必须完全匹配)

旧版注入 API 导出器

  • 如果您使用方法 2 中的注入身份验证文件,请将 exporters 代码块替换为以下内容。将 creds_file_path 设置为注入身份验证文件的路径,并且如果您的实例位于美国境外,请将 malachiteingestion-pa.googleapis.com 替换为您的 区域级端点(例如 europe-malachiteingestion-pa.googleapis.com)。

    exporters:
        chronicle/cisco_cts:
            compression: gzip
            creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
            customer_id: 'YOUR_CUSTOMER_ID'
            endpoint: malachiteingestion-pa.googleapis.com
            log_type: CISCO_CTS
            raw_log_field: body
    

保存配置文件

修改后,保存文件:

  • Linux:按 Ctrl+O,然后按 Enter,再按 Ctrl+X
  • Windows:依次点击文件 > 保存

重启 Bindplane 代理以应用更改

  • 如需在 Linux 中重启 Bindplane 代理,请执行以下操作:

    1. 运行以下命令:

      sudo systemctl restart observiq-otel-collector
      
    2. 验证服务是否正在运行:

      sudo systemctl status observiq-otel-collector
      
    3. 检查日志中是否存在错误:

      sudo journalctl -u observiq-otel-collector -f
      
  • 如需在 Windows 中重启 Bindplane 代理,请执行以下操作:

    1. 请从下列选项中选择一项:

      • 以管理员身份运行命令提示符或 PowerShell:

        net stop observiq-otel-collector && net start observiq-otel-collector
        
      • “服务”控制台:

      1. 按 Win+R,输入 services.msc,然后按 Enter 键。
      2. 找到 observIQ OpenTelemetry Collector 。
      3. 右键点击并选择重启 。
    2. 验证服务是否正在运行:

      sc query observiq-otel-collector
      
    3. 检查日志中是否存在错误:

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

配置 Cisco CTS syslog 转发

Cisco TelePresence System (CTS) syslog 转发通过 Cisco Unified Communications Manager (CUCM) 进行配置。必须在每个 CTS 设备的“Product Specific Configuration Layout”(产品专用配置布局)中配置外部 Syslog 地址。

在 CUCM 中配置外部 syslog 地址

  1. 使用网络浏览器登录 Cisco Unified Communications Manager Administration 界面。
  2. 依次前往设备 > 电话。
  3. 使用搜索功能找到您的 Cisco TelePresence System 设备。
  4. 点击设备名称以打开电话配置 窗口。
  5. 向下滚动到 Product Specific Configuration Layout (产品专用配置布局)部分。
  6. 找到 External SYSLOG Address (外部 SYSLOG 地址)字段。
  7. 在 External SYSLOG Address (外部 SYSLOG 地址)字段中,输入 syslog 服务器地址,格式如下:

    • 仅限 IP 地址:192.168.1.100(使用默认端口 514)
    • IP 地址和端口:192.168.1.100:514
    • 仅限主机名:bindplane-server.example.com(使用默认端口 514)
    • 主机名和端口:bindplane-server.example.com:1514
  8. 点击页面底部的保存 ,以保存配置。

  9. 点击应用配置 ,以将更改应用于设备。

  10. 点击重置 或重启 ,以重启 CTS 设备并启用 syslog 转发。

验证 CTS 设备上的 syslog 配置

  1. 打开网络浏览器,然后前往 https://<CTS-IP-ADDRESS> 处的 CTS 管理界面。
  2. 使用在 CUCM 中配置的 SSH 管理员用户名和密码登录。
  3. 依次前往配置 > 网络设置。
  4. 验证 Syslog Address (Syslog 地址)字段是否显示 Bindplane 代理的 IP 地址或主机名。

为多个 CTS 设备配置 syslog

如果您有多个 CTS 设备,请为每个设备重复执行配置步骤:

  1. 在 CUCM 中,依次前往设备 > 电话。
  2. 搜索并选择每个 CTS 设备。
  3. 在 Product Specific Configuration Layout (产品专用配置布局)部分中,配置 External SYSLOG Address (外部 SYSLOG 地址)字段。
  4. 保存并应用每个设备的配置。
  5. 重启每个设备以启用 syslog 转发。

验证是否收到了 syslog 消息

  1. 检查 Bindplane 代理日志,验证是否收到了 syslog 消息:

    • Linux:

      sudo journalctl -u observiq-otel-collector -f | grep -i cisco
      
    • Windows:

      type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log" | findstr /i cisco
      
  2. 登录 Google SecOps 控制台。

  3. 前往搜索 ,然后针对最近的 CTS 日志运行搜索查询:

    metadata.log_type = "CISCO_CTS"
    
  4. 验证日志是否显示在搜索结果中,并带有最近的时间戳。

Syslog 消息格式

Cisco TelePresence System 以 RFC 3164 (BSD syslog) 格式发送 syslog 消息。消息包括:

  • 针对通话活动、视频/音频事件和系统操作的系统操作 (sysop) 日志消息
  • 设施代码:因消息类型而异
  • 默认端口:UDP 514
  • 消息存储:CTS 设备上最多 20 个轮替日志文件

排查 syslog 转发问题

如果未收到 syslog 消息,请执行以下操作:

  1. 验证从 CTS 编解码器到 Bindplane 代理的网络连接:

    ping <BINDPLANE_AGENT_IP>
    
  2. 验证防火墙规则是否允许从 CTS IP 地址到 Bindplane 代理的 UDP 端口 514(或配置的端口)上的流量。

  3. 检查外部 SYSLOG 地址是否在 CUCM 产品专用配置布局中正确配置。

  4. 验证 CTS 设备是否已在应用 syslog 配置后重启。

  5. 在 Troubleshooting > Log Files (问题排查 > 日志文件)中检查 CTS 管理界面日志中是否存在任何与 syslog 相关的错误。

  6. 验证 Bindplane 代理是否正在监听正确的端口:

    • Linux:

      sudo netstat -ulnp | grep 514
      
    • Windows:

      netstat -an | findstr :514
      

UDM 映射表

日志字段 UDM 映射 逻辑
AuditDetails, data2 security_result.description 如果 AuditDetails 不为空,则取 AuditDetails 中的值,否则取 data2 中的值
ClientAddress, LoginFrom principal.ip 如果 ClientAddress 不为空且不是 IP 地址,则取 ClientAddress 中的值,否则取 LoginFrom 中的值
EventType metadata.product_event_type 直接复制值
logType metadata.description 直接复制值
severity security_result.severity 如果严重程度在 [6,7] 中,则设置为 INFORMATIONAL;如果为 5,则设置为 LOW;如果为 4,则设置为 MEDIUM;如果为 3,则设置为 ERROR;如果为 2,则设置为 HIGH;否则设置为 CRITICAL
logType, EventStatus security_result.action 如果 logType == AuthenticationSucceeded 或 EventStatus == Success,则设置为 ALLOW
EventType, logType metadata.event_type 如果 EventType == UserAccess,则设置为 USER_RESOURCE_ACCESS;如果 EventType == UserLogging 或 logType 与 LOGIN 匹配,则设置为 USER_LOGIN;如果 EventType 在 [UserRoleMembershipUpdate, GeneralConfigurationUpdate] 中,则设置为 USER_RESOURCE_UPDATE_CONTENT;否则设置为 GENERIC_EVENT
AppID principal.application 直接复制值
NodeID target.hostname 直接复制值
process_id principal.process.pid 直接复制值
ResourceAccessed target.resource.name 直接复制值
UserID principal.user.userid 直接复制值
metadata.product_name 设置为“CISCO_CTS”
metadata.vendor_name 设置为“CISCO”

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