rsyslog Write into Log File Error [How to Solve]

1. Use logger to send system notification logs,

[root@Infor-test01 ~]# logger cccccccaaaaaaaadddddddd

 

The error message is also written to the log,

 

 Modify the type, and modify the permission 777. :

The most important one is the type tag of the file. For example, the httpd process can only run in httpd_t, and /etc/passwd only has type

It can only work for passwd_file_t. If the /var/log/messages file is not of type var_log_t, it will not be able to record logs, etc.

In the SELinux security policy, the type type is modified, which may cause the file to fail to be used normally .

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *