Configuring syslog-ng in CentOS/RHEL 7

For a number of reasons, rsyslog is installed in the default CentOS, I do not like. I love when the logs are sorted by year, month, facility, priorities. So the first thing I change rsyslog in syslog-ng. To do this, do the following:

Update from 2015-12-18: Don’t forget to read this post.

Comments

  1. Hi,

    cd /

    mkdir logcentral

    I have changed the:

    file(“/logcentral/syslog-$HOST/$YEAR-$MONTH/$FACILITY.$PRIORITY.log”
    template(“$FULLDATE $MSGHDR$MSG\n”)
    template_escape(no)
    );
    But it doesn’t work ? Can you help ?

    Thanks,

Leave a Reply