Torch Log Service
Parameters | Default collection rate | Collection rate exceeds 20 MB/s | Collection rate exceeds 40 MB/s | Collection rate exceeds 60 MB/s |
Parameters | Default collection rate | Collection rate exceeds 20 MB/s | Collection rate exceeds 40 MB/s | Collection rate exceeds 60 MB/s |
max_procs | 1 | 2 | 3 | 4 |
max_mem | 1GiB | 2GiB | 3GiB | 4GiB |
Parameters | Default collection rate | Collection rate exceeds 20 MB/s | Collection rate exceeds 40 MB/s | Collection rate exceeds 60 MB/s |
Parameters | Default collection rate | Collection rate exceeds 20 MB/s | Collection rate exceeds 40 MB/s | Collection rate exceeds 60 MB/s |
max_procs | 1 | 2 | 3 | 4 |
max_mem | 1GiB | 2GiB | 3GiB | 4GiB |
resources.limits.cpu | 1000m | 2000m | 3000m | 4000m |
resources.limits.memory | 1GiB | 2GiB | 3GiB | 4GiB |
Collection mode | Performance limit |
Collection mode | Performance limit |
Single-line full text mode | 300 MB/s |
Multi-line full text mode | 200 MB/s |
JSON mode | 150 MB/s |
Separator mode | 120 MB/s |
Single-line complete regex mode | 100 MB/s |
Multi-line complete regex mode | 100 MB/s |
LogCollector version | Installation scenario | File path |
LogCollector version | Installation scenario | File path |
LogCollector v2.2.0 and later versions | Host scenario | /usr/local/logcollector/etc/logcollector.yml |
| Container scenario | Modify the LogCollector configuration file by updating the configmap. kubectl edit configmap -n kube-syetem logcollector-config |
Logcollector versions before v2.2.0 | Host scenario | /usr/local/filebeat-7.12.0/etc/filebeat.yml |
| Container scenario | Modify the LogCollector configuration file by updating the configmap. kubectl edit configmap -n kube-syetem logcollector-config |
Configuration item | Type | Description | Example |
Configuration item | Type | Description | Example |
max_procs | int | CPU threshold allowed for LogCollector.
max_procs is a soft limit, and the actual CPU usage by LogCollector may exceed this value. | max_procs: 2 |
max_mem | string | Memory threshold for LogCollector
max_mem is a soft limit, and the actual memory used by LogCollector may exceed this value. | max_mem: 2GiB |
log_max_bytes | string | Maximum length for each log entry
| log_max_bytes: 512KiB |
autodiscover | autodiscover | Container discovery module. For more details, see the table below. | autodiscover: providers: - type: kuberbetes cleanup_timeout: 15s |
input.log.enable_inotify | bool | This configuration determines whether to enable or disable inotify mechanism.
| input.log.enable_inotify:false |
Parameters | Type | Description |
Parameters | Type | Description |
Providers | Array of Object | Specific provider for container discovery. Currently, only Kubernetes is supported. For more details, see the table below. |
Parameters | Type | Description | Example |
Parameters | Type | Description | Example |
cleanup_timeout | string | Time delay before ending collection after Pod terminates. The default value is 15s. | cleanup_timeout: 15s |