I am trying to use rsyslog or syslog-ng inside a non-privileged container in Kubernetes. Now I have managed to make most of the part work but the only place I am stuck with with /dev/log socket.
The rsyslog/syslog-ng fails to create this socket without privilege which is kind of expected as /dev is owned by root.
Error binding socket; addr='AF_UNIX(/dev/log)', error='Permission denied (13)
Now I am unable to modify the permission of /dev to allow my user as my changes from the image gets overwritten when a pod is created as most likely because these are used from host machine.
So the only way seems to be to use capabilities to make it work.
Anyone else had luck using rsyslog or syslog-ng without any capabilities? Or is there any way to create /dev/log socket without any privilege?
Any leads appreciated.