收集 Colinet Trotta GAUS SEGUROS 日志

解析器版本:1.0

支持的语言:

本文档介绍了如何使用 Bindplane 代理将 Colinet Trotta GAUS SEGUROS 日志注入到 Google Security Operations。

Colinet Trotta GAUS SEGUROS 是由 Colinet Trotta S.A.(阿根廷)开发的保险管理平台。它会生成用户活动和审核日志,包括用户账号详细信息、登录事件和系统操作。该平台未提供日志导出方面的公开文档;导出流程取决于您的具体 GAUS 部署,需要与 Colinet Trotta 的技术支持团队协调。

准备工作

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

  • Google SecOps 实例
  • Windows Server 2016 或更高版本,或者具有 systemd 的 Linux 主机
  • Bindplane 代理与 GAUS SEGUROS 服务器之间的网络连接
  • 如果通过代理运行,请确保防火墙端口根据 Bindplane 代理要求处于开放状态
  • 拥有 Colinet Trotta GAUS SEGUROS 平台的管理员权限
  • 对 GAUS SEGUROS 数据库或报告模块的访问权限,用于导出日志

获取 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 收集器目录(在 Linux 上为 /opt/observiq-otel-collector/ingestion-auth.json,在 Windows 上为 C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json)中的 ingestion-auth.json,或更新 config.yaml 中的 creds_file_path 以与您保存密钥文件的路径相匹配。
  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
    

    该服务应显示为正在运行。

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
    

    该服务应显示为有效(正在运行)。

其他安装资源

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

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

找到配置文件

  • Linux:

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

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

修改配置文件

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

    receivers:
      filelog:
        include:
          - /path/to/gaus-seguros-logs/*.log
        start_at: beginning
    
    exporters:
      chronicle/ct_gaus_seguros:
        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: '<customer_id>'
        endpoint: chronicle.googleapis.com
        log_type: CT_GAUS_SEGUROS
        raw_log_field: body
        ingestion_labels:
          env: production
    
    service:
      pipelines:
        logs/ct_gaus_seguros_to_chronicle:
          receivers:
            - filelog
          exporters:
            - chronicle/ct_gaus_seguros
    

配置参数

替换以下占位符:

  • 接收器配置:

    • filelog:用于从磁盘收集日志文件的接收器类型
    • include:要监控的文件路径或 glob 模式的列表:
      • 调整路径,使其与您的 GAUS SEGUROS 日志文件位置一致
      • 使用 glob 模式(例如 *.log、*.csv)匹配多个文件
    • start_at:设置为 beginning 可从头开始读取现有日志文件,设置为 end 可仅读取新条目
  • 导出器配置:

    • ct_gaus_seguros:导出器的描述性名称
    • 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>:上一步中的客户 ID
    • location:将 <LOCATION> 替换为 Google SecOps 实例所在的区域(例如 us、europe 或 asia-southeast1)。导出工具会在此值前面加上 chronicle.googleapis.com。如需查看完整列表,请参阅区域级端点。
    • project:将 <PROJECT_NUMBER> 替换为“IAM 和管理”>“设置”中的项目编号。
    • endpoint:保持设置为 chronicle.googleapis.com。
    • CT_GAUS_SEGUROS:日志类型,与在 Chronicle 中显示的完全一致
    • ingestion_labels:YAML 格式的可选标签(例如 env: production)
  • 流水线配置:

    • ct_gaus_seguros_to_chronicle:流水线的描述性名称

旧版提取 API

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

    exporters:
      chronicle/ct_gaus_seguros:
        compression: gzip
        creds_file_path: '/opt/observiq-otel-collector/ingestion-auth.json'
        customer_id: '<customer_id>'
        endpoint: malachiteingestion-pa.googleapis.com
        log_type: CT_GAUS_SEGUROS
        raw_log_field: body
        ingestion_labels:
          env: production
    

保存配置文件

  • 修改后,保存文件:
    • Linux:依次按 Ctrl+O、Enter 和 Ctrl+X
    • Windows:依次点击文件 > 保存

重启 Bindplane 代理以应用更改

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

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

      sudo systemctl status observiq-otel-collector
      
    2. 检查日志中的错误:

      sudo journalctl -u observiq-otel-collector -f
      
  • 如需在 Windows 中重启 Bindplane 代理,请选择以下选项之一:

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

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

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

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

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

导出 GAUS SEGUROS 日志以供收集

  1. 请与您的 Colinet Trotta 客户代表或 GAUS SEGUROS 系统管理员联系,了解您的部署可用的日志导出方法。
  2. 从 GAUS SEGUROS 导出审核数据的常见方法包括:
    • 数据库导出:GAUS 会将用户数据和审核数据存储在关系型数据库中。您的数据库管理员可以将相关表(例如,包含用户 ID、显示名称、邮箱、状态和时间戳列的用户账号表)导出为 CSV 或带分隔符的文本文件。
    • 应用级导出:如果您的 GAUS 部署包含报告或审核模块,请使用该模块生成定期审核报告并将其导出为文件。
  3. 将导出的日志文件保存到 Bindplane 代理监控的目录(例如 /path/to/gaus-seguros-logs/)。
  4. (可选)使用 Cron 作业或 Windows 任务计划程序安排定期导出,以自动生成日志文件。

UDM 映射表

日志字段 UDM 映射 逻辑
column3 metadata.description 直接映射
column7 metadata.description 直接映射
has_user metadata.event_type 已映射:true → USER_UNCATEGORIZED
column10_label principal.user.attribute.labels 已合并
column11_label principal.user.attribute.labels 已合并
column12_label principal.user.attribute.labels 已合并
column13_label principal.user.attribute.labels 已合并
column14_label principal.user.attribute.labels 已合并
column15_label principal.user.attribute.labels 已合并
column16_label principal.user.attribute.labels 已合并
column17_label principal.user.attribute.labels 已合并
column18_label principal.user.attribute.labels 已合并
column19_label principal.user.attribute.labels 已合并
column20_label principal.user.attribute.labels 已合并
column21_label principal.user.attribute.labels 已合并
column22_label principal.user.attribute.labels 已合并
column23_label principal.user.attribute.labels 已合并
column24_label principal.user.attribute.labels 已合并
column25_label principal.user.attribute.labels 已合并
column26_label principal.user.attribute.labels 已合并
column27_label principal.user.attribute.labels 已合并
column28_label principal.user.attribute.labels 已合并
column29_label principal.user.attribute.labels 已合并
column30_label principal.user.attribute.labels 已合并
column31_label principal.user.attribute.labels 已合并
column32_label principal.user.attribute.labels 已合并
column33_label principal.user.attribute.labels 已合并
column34_label principal.user.attribute.labels 已合并
column35_label principal.user.attribute.labels 已合并
column36_label principal.user.attribute.labels 已合并
column37_label principal.user.attribute.labels 已合并
column38_label principal.user.attribute.labels 已合并
column39_label principal.user.attribute.labels 已合并
column6_label principal.user.attribute.labels 已合并
column7_label principal.user.attribute.labels 已合并
column8_label principal.user.attribute.labels 已合并
column9_label principal.user.attribute.labels 已合并
type_label principal.user.attribute.labels 已合并
column5 principal.user.email_addresses 已映射:^.+@.+$ → column5
column1 principal.user.product_object_id 直接映射
column3 principal.user.product_object_id 直接映射
column2 principal.user.user_display_name 直接映射
column1 principal.user.userid 直接映射
column4 principal.user.userid 直接映射
不适用 metadata.event_type 常量:USER_UNCATEGORIZED
不适用 metadata.product_name 常量:GAUS SEGUROS
不适用 metadata.vendor_name 常量:Colinet Trotta

更新日志

查看此解析器的更新日志

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