Skip to main content
版本:1.8.0

参数配置

概览

审计代理服务 audit-proxy 在 audit-proxy-{tube|pulsar|kafka}.conf中设置。 审计存储服务 audit-store 在 application.properties中设置。

审计代理层 audit-proxy source-channel-sink 管道配置(audit-proxy-{tube|pulsar|kafka}.conf)

通用设置

参数描述默认值备注
agent1.sourcessource类型tcp-source
agent1.channels使用的channelch-msg1
agent1.sinks使用的sinkpulsar-sink-msg1

|

sources 相关设置

参数描述默认值备注
agent1.sources.tcp-source.channels定义source中使用到的channelch-msg1
agent1.sources.tcp-source.host服务ip0.0.0.0
agent1.sources.tcp-source.port监听端口10081

channel 相关配置

参数描述默认值备注
agent1.channels.ch-msg1.typememory channel类型memory
agent1.channels.ch-msg2.typefile channel类型file

sink 相关配置

参数描述默认值备注
agent1.sinks.pulsar-sink-msg1.channelsink的上游channel名称ch-msg1
agent1.sinks.pulsar-sink-msg1.typesink类实现org.apache.inlong.audit.sink.PulsarSink
agent1.sinks.pulsar-sink-msg1.pulsar_server_urlpulsar集群broker节点pulsar://localhost:6650
agent1.sinks.pulsar-sink-msg1.topicpulsar集群topicpersistent://public/default/inlong-audit
agent1.sinks.pulsar-sink-msg1.enable_token_auth是否需要安全认证false
agent1.sinks.pulsar-sink-msg1.auth_tokenpulsar认证token

审计存储服务 audit-store 配置 application.properties

MQ配置

参数描述默认值备注
audit.config.proxy.typeMQ类型pulsar
audit.pulsar.server.urlpulsar的集群地址pulsar://127.0.0.1:6650
audit.pulsar.topicpulsar topicpersistent://public/default/inlong-audit
audit.pulsar.consumer.sub.name订阅组inlong-audit-subscription
audit.pulsar.enable.auth是否需要安全认证false
audit.pulsar.token认证token

DB 相关设置

参数描述默认值备注
spring.datasource.druid.driver-class-name设置Driver类型com.mysql.cj.jdbc.Driver
spring.datasource.druid.urljdbc的URLjdbc:mysql://127.0.0.1:3306/apache_inlong_audit?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL&allowPublicKeyRetrieval=true
spring.datasource.druid.username账号名root
spring.datasource.druid.password密码inlong

ElasticSearch 配置

参数描述默认值备注
elasticsearch.host集群地址127.0.0.1
elasticsearch.port集群端口9200
elasticsearch.authEnable是否认证false
elasticsearch.username账号名elastic
elasticsearch.password密码inlong
elasticsearch.indexDeleteDay索引保存时间,天5
elasticsearch.auditIdSet允许写入的审计ID列表1,2

clickhouse 相关配置

参数描述默认值备注
clickhouse.driver设置Driver类型ru.yandex.clickhouse.ClickHouseDriver
clickhouse.urlclickhouse的URLjdbc:clickhouse://127.0.0.1:8123/default
clickhouse.username账号名default
clickhouse.password密码default