Docker syslog driver to give only the infrastructure logs/syslog messages and drop STDOUT/STDERR


I am trying to capture the docker logs from all the containers running on my host framework. My use case is I dont want to capture the application logs(STDOUT). If possible only the STDERR and syslog or some backend messages which may be useful.

I tried syslog driver command but it is giving all the STDOUT logs even if I echo something on container also getting logged. Is it possible to drop these kind of logs or add some source option in logs to differ between the logs.