All installation files are in the inlong-audit directory, if you use MySQL to store audit data, you need to first create the database through sql/apache_inlong_audit_mysql.sql.
# initialize database mysql -uDB_USER -pDB_PASSWD < sql/apache_inlong_audit_mysql.sql
If you use StarRocks to store audit data, you need to first create the database through sql/apache_inlong_audit_starrocks.sql.
# initialize database mysql -uDB_USER -pDB_PASSWD < sql/apache_inlong_audit_starrocks.sql
You can choose Apache Pulsar, Apache Kafka or InLong TubeMQ as your MessageQueue service:
conf/audit-proxy-pulsar.conf. Change the Pulsar Topic info.agent1.sinks.pulsar-sink-msg1.topic = persistent://public/default/inlong-audit agent1.sinks.pulsar-sink-msg2.topic = persistent://public/default/inlong-audit
conf/audit-proxy-kafka.conf. Change the Kafka Topic info.agent1.sinks.kafka-sink-msg1.topic = inlong-audit agent1.sinks.kafka-sink-msg2.topic = inlong-audit
# By default, pulsar is used as the MessageQueue, and the audit-proxy-pulsar.conf configuration file is loaded. bash +x ./bin/proxy-start.sh [pulsar|kafka]
The default listen port is 10081.
The configuration file is conf/application.properties.
# the MQ type for audit proxy: pulsar / kafka audit.config.proxy.type=pulsar # manger config manager.hosts=127.0.0.1:8083 # Get Kafka or Pulsar address from the cluster tag default.mq.cluster.tag=default_cluster # pulsar config audit.pulsar.topic=persistent://public/default/inlong-audit audit.pulsar.consumer.sub.name=inlong-audit-subscription audit.pulsar.token= audit.pulsar.enable.auth=false # kafka config audit.kafka.topic=inlong-audit audit.kafka.topic.numPartitions=3 audit.kafka.topic.replicationFactor=2 audit.kafka.consumer.name=inlong-audit-consumer audit.kafka.group.id=audit-consumer-group # Generic jdbc storage jdbc.driver=com.mysql.cj.jdbc.Driver jdbc.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 jdbc.username=root jdbc.password=inlong
If the backend database is MySQL, please download mysql-connector-java-8.0.28.jar and put it into lib/ directory.
If the backend database is PostgreSQL, there's no need for additional dependencies.
bash +x ./bin/store-start.sh
The configuration file is conf/audit-service.properties
mysql.jdbc.url=jdbc:mysql://127.0.0.1:3306/apache_inlong_audit?characterEncoding=utf8&useUnicode=true&rewriteBatchedStatements=true mysql.username=root mysql.password=inlong
(optional) Configure Audit Data Sources In the audit_source_config table used by the Audit Service, configure the data source for audit storage. By default, the same MySQL configuration is used as the Audit Service
(optional) Configure Audit Items In the audit_id_config table used by the Audit Service, configure the audit items that need to be cached. By default, Agent is used to receive successfully, Agent is sent successfully, DataProxy is received successfully, and DataProxy is sent successfully.
lib/ directory.bash +x ./bin/service-start.sh
The default listen port is 10080.