Giter Site home page Giter Site logo

splunk-obs-connector's Introduction

Splunk 对接华为云 OBS 插件

简体中文|English

安装方法

从 Github 下载源码安装

  1. 安装 Splunk Add-on Builder
  2. 从 Github 下载 OBS Connector: Splunk-OBS-Connector Release
  3. 进入 Splunk Add-on Builder, 点击 Import Project 导入压缩包

通过 Splunkbase 安装

  1. 通过 Splunk OBS Connector 下载安装包
  2. 进入 Splunk 的应用安装,选择从文件安装
  3. 选择步骤 1 中下载的安装包

安装依赖

该插件依赖于华为 OBS SDK,由于其 SDK 依赖的三方库 pycryptodome 不能跨平台使用,Github 和 SplunkBase 的软件包内已经预置了Unix 操作系统在 x86_64 架构下的相关依赖,如若与您所使用的版本不符,或安装后使用不正常,请参考参考此章节自行安装对应平台的插件。

  1. 在部署 Splunk 的服务器安装 Python3 pip,如已安装可跳过
  2. 安装 OBS Python SDK 至临时目录,pip install esdk-obs-python --root /tmp/obs
  3. 进入依赖安装目录,cd /tmp/obs/
  4. 进入子目录,直到 site-packages 路径下(可能路径为usr/lib64/python3.7/site-packages/
  5. 执行 zip -rq obs.zip * 进行打包
  6. 将第五步打包好依赖包解压至 $SPLUNK_HOME/etc/apps/splunk-obs-connector/bin/splunk-obs-connector/aob_py3

使用说明

配置参数说明

参数名 说明 必填 默认值
Endpoint 桶所对应的 OBS Endpoint,如果不一致会无法访问桶 Y
AK 账号的 AccessKey, 账号需要有 ListBucket 权限和 GetObject 权限 Y
SK 账号的 SecretKey Y
Bucket 桶名 Y
Prefix 目标对象的前缀, 在指定该值后,将仅列举以此前缀开头的对象 N
Part Size 获取对象时的分块大小,单位为 bytes, 默认值 4M N 4194304(4M)
Retry Times 获取对象内容失败时的重试次数 N 3
Using HTTPS 是否使用 HTTPS N True
Unpack GZ File 是否自动解压 .gz 结尾的文件, 设置为 False 时将无法识别 .gz 文件的内容 N True
Enable OBS Log 是否开启 OBS SDK 的日志。如若开启该选项则必须指定日志配置文件的路径 N False
Log Config Path 日志配置文件的路径,可以从 Github 获取模板 N

splunk-obs-connector's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.