Parameter | Description |
General Settings |
Config Name | The name of the Logtail configuration. You can specify a custom name. |
Cluster | The custom name of the cluster. After you configure this parameter, Simple Log Service adds a tag in the cluster=Cluster name format to the monitoring data that is collected by using the Logtail configuration. Important Make sure that the cluster name is unique. Otherwise, data conflicts may occur. |
Monitor Application Layer Protocols | If you turn on Monitor Application Layer Protocols, Logtail parses the network protocol of the application layer, such as HTTP, MySQL, or Redis. |
Statistical Interval of Network Metrics | The interval at which Layer 4 network data is aggregated. The data that is generated within the interval is aggregated, and the aggregation result is returned. Unit: seconds. We recommend that you specify an interval that is less than or equal to 600 seconds. |
Statistical Interval of Protocol Metrics | The interval at which Layer 7 network data is aggregated. The data that is generated within the interval is aggregated, and the aggregation result is returned. Unit: seconds. We recommend that you specify an interval that is less than or equal to 60 seconds. |
Protocol Sample Rate | The sample rate of network data. Only Layer 7 network data is filtered. The sample rate does not affect statistics. |
Protocol Whitelist | The application layer protocol that you want to parse. |
Kubernetes Selector |
Namespace Whitelist | Configure a namespace-name regular expression to specify the namespaces whose data you want to collect. |
Namespace Blacklist | Configure a namespace-name regular expression to specify the namespaces whose data you do not want to collect. |
Pod Whitelist | Configure a pod-name regular expression to specify the pods whose data you want to collect. |
Pod Blacklist | Configure a pod-name regular expression to specify the pods whose data you do not want to collect. |
Container Whitelist | Configure a container-name regular expression to specify the containers whose data you want to collect. |
Container Blacklist | Configure a container-name regular expression to specify the containers whose data you do not want to collect. |
Label Whitelist | The container label whitelist. The whitelist specifies the containers from which logs are collected. Set LabelKey to the name of the label and LabelValue to a regular expression. For example, if you set LabelKey to io.kubernetes.container.name and LabelValue to ^(nginx|cube)$, logs are collected from a container named nginx and a container named cube. Key-value pairs are in the logical OR relation. If a label in the key-value pair format of a container matches one of the specified key-value pairs, the logs of the container are collected. |
Label Blacklist | The container label blacklist. The blacklist specifies the containers from which logs are not collected. Set LabelKey to the name of the label and LabelValue to a regular expression. For example, if you set LabelKey to io.kubernetes.container.name and LabelValue to ^(nginx|cube)$, logs are not collected from a container named nginx or a container named cube. Key-value pairs are in the logical OR relation. If a label in the key-value pair format of a container matches one of the specified key-value pairs, the logs of the container are not collected. |
Environment Variable Whitelist | The environment variable whitelist. The whitelist specifies the containers from which logs are collected. Set EnvKey to the name of the environment variable and EnvValue to a regular expression. For example, if you set EnvKey to NGINX_SERVICE_PORT and EnvValue to ^(80|6379)$, logs are collected from containers whose port number is 80 and containers whose port number is 6379. Key-value pairs are in the logical OR relation. If an environment variable in the key-value pair format of a container matches one of the specified key-value pairs, the logs of the container are collected. |
Environment Variable Blacklist | The environment variable blacklist. The blacklist specifies the containers from which logs are not collected. Set EnvKey to the name of the environment variable and EnvValue to a regular expression. For example, if you set EnvKey to NGINX_SERVICE_PORT and EnvValue to ^(80|6379)$, logs are not collected from the containers whose port number is 80 or 6379. Key-value pairs are in the logical OR relation. If an environment variable in the key-value pair format of a container matches one of the specified key-value pairs, the logs of the container are not collected. |
Advanced configurations |
Drop Local Packets | If you turn on Drop Local Packets, Logtail drops the packets of inbound requests that are sent from INET domain sockets. |
Drop Unix Packets | If you turn on Drop Unix Packets, Logtail drops the packets of requests that are sent from Unix domain sockets. In most cases, Unix domain sockets are used for local data transmission. |
Drop Unknown Packets | If you turn on Drop Unknown Packets, Logtail drops the packets of requests that are not sent from INET domain sockets or Unix domain sockets. |
Read Interval of Container Data | The interval at which you want to read container metadata. Unit: seconds. We recommend that you specify an interval that is less than or equal to 60 seconds. |
Read Interval of Socket Data | The interval at which you want to read socket metadata. Unit: seconds. We recommend that you specify an interval that is less than or equal to 30 seconds. |
Protocol Aggregation Window | The size of the process-level data aggregation window within the statistical interval of protocol metrics. This parameter is used to control resource consumption and prevent the Logtail memory increase issue caused by a large number of different calls. The default value for clients is 500, and the default value for servers is 5000. |