LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsyslog error code 2027 (https://www.linuxquestions.org/questions/linux-newbie-8/rsyslog-error-code-2027-a-4175678611/)

DennyY 07-12-2020 06:17 PM

rsyslog error code 2027
 
Hi All,

Just configured rsyslog on both of Centos8 server/client. But the client still "cannot connect to 192.168.1.2:514: Connection timed out". The error code is 2027.

Here is what I did on the server side:

Code:

$template RemoteLogs,"/var/log/%HOSTNAME%/%PROGRAMNAME%.log"
*.* ?RemoteLogs & ~_

I also uncomment
Code:

module(load="imtcp") # needs to be done just once
input(type="imtcp" port="514")

On the client side I added:
Code:

*.* @@192.168.1.2:514

I tried to look up that error code 2027, but no luck.

Thank you for your help ~

berndbausch 07-12-2020 11:32 PM

By default, Centos closes all network ports to incoming traffic. The usual command to open 514 on the server:
Code:

firewall-cmd --add-port 514/tcp

DennyY 07-20-2020 06:36 PM

rsyslog error code 2027
 
Thank you for your help.

Just found out that I can't ping my laptop and desktop from one another. I think this is a network issue. That's why I couldn't exercise rsyslog, or scp.

Quote:

Originally Posted by berndbausch (Post 6144776)
By default, Centos closes all network ports to incoming traffic. The usual command to open 514 on the server:
Code:

firewall-cmd --add-port 514/tcp



All times are GMT -5. The time now is 01:22 AM.