Skip to content

Commit

Permalink
[INLONG-10770][Agent] Delete audit proxy configuration related code (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwwhuang committed Aug 12, 2024
1 parent bb00082 commit ab88f0d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 1 addition & 3 deletions inlong-agent/agent-installer/conf/installer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,4 @@ agent.cluster.name=default_agent
# audit config
############################
# whether to enable audit
audit.enable=true
# Use the audit proxy address if the audit proxy address is configured; otherwise get the proxy address from the manager
audit.proxys=127.0.0.1:10081
audit.enable=true
8 changes: 0 additions & 8 deletions inlong-agent/bin/agent-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ clusterTag=$(cat $installerConfigFile|grep -i 'agent.cluster.tag'|awk -F = '{pri
clusterName=$(cat $installerConfigFile|grep -i 'agent.cluster.name'|awk -F = '{print $2}')
tdwSecurityUrl=$(cat $installerConfigFile|grep -i 'tdw.security.url'|awk -F = '{print $2}')
auditFlag=$(cat $installerConfigFile|grep -i 'audit.enable'|awk -F = '{print $2}')
auditProxy=$(cat $installerConfigFile|grep -i 'audit.proxys'|grep -v '#'|awk -F = '{print $2}')

if [ ${#managerAddr} -gt 0 ]; then
sed -i "/agent.manager.addr=*/c\agent.manager.addr=$managerAddr" $agentConfigFile
Expand Down Expand Up @@ -62,10 +61,3 @@ if [ ${#auditFlag} -gt 0 ]; then
else
echo "audit flag empty"
fi

if [ ${#auditProxy} -gt 0 ]; then
sed -i "/audit.proxys=*/c\audit.proxys=$auditProxy" $agentConfigFile
else
sed -i "/audit.proxys=*/c\# audit.proxys=$auditProxy" $agentConfigFile
echo "audit proxy empty"
fi
2 changes: 0 additions & 2 deletions inlong-agent/conf/agent.properties
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,3 @@ agent.prometheus.exporter.port=9080
############################
# whether to enable audit
audit.enable=true
# Use the audit proxy address if the audit proxy address is configured; otherwise get the proxy address from the manager
audit.proxys=127.0.0.1:10081

0 comments on commit ab88f0d

Please sign in to comment.