[SOLVED] Problem with rsyslog

Discussion in 'Installation/Configuration' started by brnad, Jan 11, 2018.

  1. brnad

    brnad New Member

    i have web/mail server on ubuntu 14.04.5 LTS. i tried to upgrade rsyslog to last version (followed this tutorial http://www.rsyslog.com/ubuntu-repository/)

    but for some reason version stay on 4.6.1
    rsyslogd -v
    rsyslogd 4.6.1, compiled with:
            FEATURE_REGEXP:                         Yes
            FEATURE_LARGEFILE:                      No
            FEATURE_NETZIP (message compression):   Yes
            GSSAPI Kerberos 5 support:              No
            FEATURE_DEBUG (debug build, slow code): No
            Atomic operations supported:            Yes
            Runtime Instrumentation (slow code):    No
    on other server (same os) upgrade has gone ok.

    some strange is on server.
    when i remove rsyslog package from server (apt-get remove rsyslog) i still can run command rsyslogd -v and it show same as posted above.
    on other server when i remove rsyslog package, i cannot run rsyslogd command.

    And after i tried that upgrade sshd doesnt logg in /var/log/auth.log.
    any sugestion?

  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

     type -a rsyslog
    shows which file gets executed.
    dpkg --listfiles rsyslog 
    shows files that came from that package. Compare those.
    brnad likes this.
  3. brnad

    brnad New Member

    type -a rsyslog
    -bash: type: rsyslog: not found
     type -a rsyslogd
    rsyslogd is /usr/local/sbin/rsyslogd
    rsyslogd is /usr/sbin/rsyslogd
    dpkg --listfiles rsyslog
    which rsyslogd
    as i can see server use /usr/local/sbin/rsyslogd but that is not --listfiles rsyslog.
    and also there is two rsyslogd one in local other in usr/sbin
    probably this /local/sbin/rsyslogd is self compiled ? is that posible?, i cannot remember if i installed that.
    if so, what is safe way to delete that.

  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    The rsyslogd in /usr/local/sbin is something installed from outside Ubuntu. If it is self compiled, there may be make uninstall target in the directory where the sources are. It may have installed lots of files, like dpkg --listfiles shows for the Ubuntu package.
    To stop it bothering for now, rename the executable to something else, maybe
    mv /usr/local/sbin/rsyslogd /usr/local/sbin/rsyslogd-FOO
    Then you can figure out how to uninstall it completely later.
    brnad likes this.
  5. brnad

    brnad New Member

    thanks on help.
    i moved that file and after that reinstall rsyslog and now version is 8.32 (last one)

    problem with auth.log file was in ownership
    file was owned by root:adm, and i changed that on syslog:adm and now log is update.
    also some other .log file in /var/log have wrong owner so i changed them also.
    sudo chown syslog:adm /var/log/auth.log
    thank you one more time :)

Share This Page