syslog não existe!

9

Eu uso o 14.04 e não tenho syslog.

Sou um usuário novo do Linux, sendo usuário do Windows há anos. Quando eu tento rastrear o syslog e é isso que acontece:

henrique@henrique:/var/log$ tail -f /var/log/syslog
tail: couldn't open “/var/log/syslog” for reading: File or directory not found

Isso foi algum erro na instalação do Ubuntu? É assim que eu consigo "instalar" o syslog?

EDIÇÃO:

cat /etc/rsyslog.conf

#  /etc/rsyslog.conf    Configuration file for rsyslog.
#
#           For more information see
#           /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
#  Default logging rules can be found in /etc/rsyslog.d/50-default.conf


#################
#### MODULES ####
#################

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support
#$ModLoad immark  # provides --MARK-- message capability

# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514

# Enable non-kernel facility klog messages
$KLogPermitNonKernelFacility on

###########################
#### GLOBAL DIRECTIVES ####
###########################

#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# Filter duplicated messages
$RepeatedMsgReduction on

#
# Set the default permissions for all log files.
#
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup syslog

#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog

#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf

Saída para apt-cache policy inetutils-syslog

inetutils-syslogd:
  Installed: (nenhum)
  Candidate: 2:1.9.2-1
  Version table:
     2:1.9.2-1 0
     500 http://br.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

Saída para apt-cache policy rsyslog

rsyslog:
  Installed: (none)
  Candidate: 7.4.4-1ubuntu2.6
  Version table:
     7.4.4-1ubuntu2.6 0
     500 http://br.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     7.4.4-1ubuntu2.3 0
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
     7.4.4-1ubuntu2 0
        500 http://br.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Saída para sudo service rsyslog status

rsyslog stop/waiting
    
por Henrique Ramos 29.07.2015 / 17:32

1 resposta

5

A saída de apt-cache policy rsyslog diz que rsyslog não está instalado no seu sistema, portanto

sudo apt-get install rsyslog
    
por A.B. 29.07.2015 / 20:01