logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 09-11-2018 17:15:20

Pierre16
Membre
Distrib. : Bookworm
Noyau : Linux 6.1.0.11-amd64
(G)UI : XFCE 4-12
Inscription : 26-01-2017

[Résolu] Logrotate ne compile plus mes fichiers logs

Bonjour,

Depuis le 27/10,mes fichiers logs ne sont plus compilés.

J'ai essayé la commande sans succès.....



logrotate /etc/logrotate.conf



Je donne ci-dessous copie de fichiers qui peuvent aider à comprendre.
Je reste à votre disposition pour fournir toutes indications supplémentaires.

logrotate

/var/log/syslog
{
  rotate 2
  daily
  missingok
  notifempty
  delaycompress
  compress
  postrotate
    invoke-rc.d rsyslog rotate > /dev/null
  endscript
}

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
  rotate 4
  weekly
  missingok
  notifempty
  compress
  delaycompress
  sharedscripts
  postrotate
    invoke-rc.d rsyslog rotate > /dev/null
  endscript
}



logrotate.conf

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here
 



rsyslog

/var/log/syslog
{
  rotate 2
  daily
  missingok
  notifempty
  delaycompress
  compress
  postrotate
    invoke-rc.d rsyslog rotate > /dev/null
  endscript
}

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
  rotate 4
  weekly
  missingok
  notifempty
  compress
  delaycompress
  sharedscripts
  postrotate
    invoke-rc.d rsyslog rotate > /dev/null
  endscript
}



grep -i hibern /var/log/syslog



syslog partiel (dernières lignes)
Nov  8 18:03:07 PC-DEVISTA org.xfce.FileManager[1348]: Le dossier de travail "./grep_hibern.sh" n'existe pas. Il ne sera pas utilisé à la réouverture de "xfce4-terminal".
Nov  8 20:00:01 PC-DEVISTA systemd[1]: Starting Hibernate...
Nov  8 20:00:01 PC-DEVISTA kernel: [460960.196247] PM: Hibernation mode set to 'platform'
Nov  9 07:00:26 PC-DEVISTA kernel: [460960.948739] PM: Creating hibernation image:
Nov  9 07:00:26 PC-DEVISTA systemd[1]: Started Hibernate.
Nov  9 07:00:26 PC-DEVISTA systemd[1]: Reached target Hibernate.
Nov  9 16:07:53 PC-DEVISTA org.xfce.FileManager[1348]: Le dossier de travail "./grep_hibern.sh" n'existe pas. Il ne sera pas utilisé à la réouverture de "xfce4-terminal".
 



syslog.1

Oct 27 07:05:31 PC-DEVISTA anacron[25438]: Job `cron.daily' started
Oct 27 07:05:31 PC-DEVISTA anacron[25457]: Updated timestamp for job `cron.daily' to 2018-10-27
Oct 27 07:05:36 PC-DEVISTA cracklib: no dictionary update necessary.
Oct 27 07:05:39 PC-DEVISTA systemd[1]: Stopping CUPS Printing Service...
Oct 27 07:05:39 PC-DEVISTA systemd[1]: Starting CUPS Printing Service...
Oct 27 07:05:39 PC-DEVISTA colord: Automatic remove of HP-Photosmart-6200-Gray.. from cups-HP-Photosmart-6200
Oct 27 07:05:39 PC-DEVISTA colord: Profile removed: HP-Photosmart-6200-Gray..
Oct 27 07:05:39 PC-DEVISTA systemd[1]: Started CUPS Printing Service.
Oct 27 07:05:39 PC-DEVISTA colord: Automatic remove of HP-Photosmart-6200-RGB.. from cups-HP-Photosmart-6200
Oct 27 07:05:39 PC-DEVISTA colord: Profile removed: HP-Photosmart-6200-RGB..
Oct 27 07:05:39 PC-DEVISTA colord: device removed: cups-HP-Photosmart-6200
Oct 27 07:05:39 PC-DEVISTA colord: Automatic remove of PDF-Gray.. from cups-PDF
Oct 27 07:05:39 PC-DEVISTA colord: Profile removed: PDF-Gray..
Oct 27 07:05:39 PC-DEVISTA colord: Automatic remove of PDF-RGB.. from cups-PDF
Oct 27 07:05:39 PC-DEVISTA colord: Profile removed: PDF-RGB..
Oct 27 07:05:39 PC-DEVISTA colord: device removed: cups-PDF
Oct 27 07:05:39 PC-DEVISTA colord: Automatic remove of Photosmart-C6200-series-Gray.. from cups-Photosmart-C6200-series
Oct 27 07:05:39 PC-DEVISTA colord: Profile removed: Photosmart-C6200-series-Gray..
Oct 27 07:05:39 PC-DEVISTA colord: Automatic remove of Photosmart-C6200-series-RGB.. from cups-Photosmart-C6200-series
Oct 27 07:05:39 PC-DEVISTA colord: Profile removed: Photosmart-C6200-series-RGB..
Oct 27 07:05:39 PC-DEVISTA colord: device removed: cups-Photosmart-C6200-series
Oct 27 07:05:40 PC-DEVISTA rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="919" x-info="http://www.rsyslog.com"] rsyslogd was HUPed




Je trouve également bizarre la dernière ligne de syslog : " Le dossier de travail "./grep_hibern.sh" n'existe pas. Il ne sera pas utilisé à la réouverture de "xfce4-terminal".

Qu'en pensez-vous ??

Dernière modification par Pierre16 (21-11-2018 17:57:02)

Hors ligne

Pied de page des forums