Deployment

All deploying files at inlong-audit directory, if you use MySQL to store audit data, you need to first create the database through sql/apache_inlong_audit.sql.

Audit Proxy

Configure Pulsar

The configuration file is conf/audit.conf.

  1. agent1.sources.tcp-source.host = 0.0.0.0
  2. agent1.sources.tcp-source.port = 46801
  3. agent1.sinks.pulsar-sink-msg1.pulsar_server_url= pulsar://PULSAR_BROKER_LIST
  4. agent1.sinks.pulsar-sink-msg1.topic = persistent://public/default/inlong-audit
  5. agent1.sinks.pulsar-sink-msg2.pulsar_server_url = pulsar://PULSAR_BROKER_LIST
  6. agent1.sinks.pulsar-sink-msg2.topic = persistent://public/default/inlong-audit

Start

  1. sh ./bin/proxy-start.sh

Audit Store

Configure

The configuration file is conf/application.properties.

  1. # store.server: mysql / elasticsearch
  2. audit.config.store.mode=mysql
  3. # audit pulsar topic
  4. audit.pulsar.server.url=pulsar://127.0.0.1:6650
  5. audit.pulsar.topic=persistent://public/default/inlong-audit
  6. audit.pulsar.consumer.sub.name=sub-audit
  7. # mysql
  8. spring.datasource.druid.url=jdbc:mysql://127.0.0.1:3306/apache_inlong_audit?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&rewriteBatchedStatements=true&allowMultiQueries=true&zeroDateTimeBehavior=CONVERT_TO_NULL
  9. spring.datasource.druid.username=root
  10. spring.datasource.druid.password=inlong

Start

The startup script file ./bin/store-start.sh

  1. sh ./bin/store-start.sh

The default listen port is 46801.