syslog-ng read file permission denied

2019-07-14 04:08发布

i need to send tomcat Catalina.out log content by Syslog-ng but but after restarting Syslog service ,it gets permission denied error

so how can i give a read access to Syslog-ng for read from CATALINA.out ? "tomcat directory belongs to specific user and specific group so cannot be change."

2条回答
做个烂人
2楼-- · 2019-07-14 04:43

i have found my problem in /etc/apparmor.d/sbin.syslong-ng,,,,after editing and insert new permission to profile. command # apparmor_parser -r /etc/apparmor.d/profile.name reloads profile

查看更多
Explosion°爆炸
3楼-- · 2019-07-14 05:05

it's possible that your Selinux/apparmor profile doesn't allow syslog-ng to access the file. See this blogpost for tips: https://syslog-ng.com/blog/using-syslog-ng-with-selinux-in-enforcing-mode/

查看更多
登录 后发表回答