Docker-Loghose performs Docker inspect calls and the info from the inspect call could be very useful to decide if logs from containers should be collected or not. Users could decide to collect logs from containers with specific labels or ENV settings etc. This PR adds an optional function "attachFilter" to Docker-Loghose options to implement a custom logic for filters.
Docker-Loghose performs Docker inspect calls and the info from the inspect call could be very useful to decide if logs from containers should be collected or not. Users could decide to collect logs from containers with specific labels or ENV settings etc. This PR adds an optional function "attachFilter" to Docker-Loghose options to implement a custom logic for filters.