creat socket error

Q & Acreat socket error
vec asked 2 months ago

Thank you for your answer.

1.syslog-ng version:  version=’3.11.1′

2.config file:
#############################################################################
# Default syslog-ng.conf file which collects all local logs into a
# single file called /var/log/messages.
#

@version: 3.11
@include “scl.conf”

options {
    time_reopen (10);
};

source s_local {
    system();
    unix-stream(“/dev/log”);
    internal();
};

source s_network {
    tcp();
};

filter my_filter {                                
        facility(local1);
};  

destination local_syslog {
    file(“/data/log/messages” create_dirs(yes));
};

destination net_syslog {
    tcp(“192.168.125.88 port(514)”);
};

destination tty_syslog {                
        usertty(root);                  
};

destination console_syslog {
    file(“/dev/console”);
};

log {
    source(s_local);

    # uncomment this line to open port 514 to receive messages
    #source(s_network);
#    filter(my_filter);
#    destination(local_syslog);
#    destination(net_syslog);
#    destination(tty_syslog);
    destination(console_syslog);
};

3.it’s ok that via execution netcat for example as that user and the same socket.

4.i run syslog-ng as root.