Get Source IP in Audit Logs¶
The source IP in audit logs plays a critical role in system and network management. It helps track activities, maintain security, troubleshoot issues, and ensure system compliance. However, obtaining the source IP can result in some performance overhead. Therefore, in DCE 5.0, audit logs are not always enabled.
The default enablement of source IP in audit logs and the methods to enable it vary depending on the installation mode. The following sections will explain the default enablement and the steps to enable source IP in audit logs based on the installation mode.
Determining the Installation Mode¶
Run the above command in the cluster. If the result is as follows, it means that the cluster is not in the Metallb installation mode:
NodePort Installation Mode¶
In this mode, the source IP in audit logs is disabled by default. The steps to enable it are as follows:
-
Set the maximum and minimum replicas of the istio-ingressgateway HPA to the number of nodes:
-
Modify the externalTrafficPolicy value of the istio-ingressgateway service to "Local":
Metallb Installation Mode¶
In this mode, source IP in audit logs is obtained by default after the installation. For more information, refer to Metallb Source IP.