It is important to mount files or directories to different log collectors. Below is a simplified docker-compose.yml example that shows setups for different types of log collectors:
version: "2.4"
services:
industrial-edge:
restart: always
environment:
- HostIps=X.X.X.X
volumes:
- "/etc/capabilities.json:/data/app_engine/Configuration/capabilities.json"
- "/host-system/xxx/journal:/host-system/var/log/journal" # systemd collector
- "/host-system/xxx:/var/run" # syslog collector
- "/host-system/xxx/tail-log:/data/agent/tail-log" # tail collector
ports:
- "443:443"
container_name: edge-iot-core
image: edge_iot_core:1.16.0