Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
Commentaire: Published by Scroll Versions from space DA and version BM-4.0
Sv translation
languagefr

Présentation

BlueMind conserve des journaux pour chaque type d'application et d'utilisation.

Avertissement

Il est important de fournir l'espace disque suffisant afin de pouvoir stocker les journaux et leurs archives.

La saturation de cet espace bloque l'enregistrement des nouvelles informations dans les fichiers journaux et peut provoquer un ralentissement, voire un blocage des services.

Volet

Sur cette page :

Sommaire
maxLevel2

En rapport :
Logs - Fichiers journaux

On distingue 3 types de fichiers journaux :

  • les journaux systèmes, gérés par le mécanisme de gestion des journaux systèmes (rsyslog + logrotate)
  • les journaux des services Java de BlueMind, gérés par LogBack

    Remarque
    titleHeures des traces

    Les traces générées par Java dans ces fichiers sont à l'heure GMT.

    Ainsi, en France, sur le fuseau horaire Europe/Paris, les heures sont décalées d'1h en hiver et 2h en été. Pour rechercher des événements qui se sont produits à 15h il faudra rechercher :

    • à 14h de fin Octobre à fin Mars
    • à 13h de fin Mars à fin Octobre
  • les journaux internes à un service, gérés via la configuration de ce service

La durée de conservation dépend du paramétrage de ces mécanismes de gestion des journaux. Il est possible de modifier leur configuration pour obtenir la durée de rétention souhaitée.

Configuration LogBack

Les fichiers de configuration par défaut se trouvent dans le répertoire /usr/share/bm-conf/logs/ :

  • bm-core-audit.log.xml
  • bm-core.log.xml
  • bm-eas.log.xml
  • bm-hps.log.xml
  • bm-ips.log.xml
  • bm-lmtpd.log.xml
  • bm-locator.log.xml
  • bm-milter.log.xml
  • bm-node.log.xml
  • bm-pimp.log.xml
  • bm-tika.log.xml
  • bm-webserver.log.xml
  • bm-xmpp.log.xml
  • bm-ysnp.log.xml

Pour effectuer des modifications, copier le fichier souhaité dans /etc/bm/local et modifier la copie.

Exemple de configuration :

Bloc de code
<appender name="R" class="ch.qos.logback.core.rolling.RollingFileAppender">
  <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender -->
  <File>/var/log/bm/core.log</File>
  <encoder>
    <pattern>%d [%thread] %c{1} %p - %m\n</pattern>
  </encoder>
  <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
    <maxIndex>20</maxIndex>
    <FileNamePattern>/var/log/bm/core.log.%i.gz</FileNamePattern>
  </rollingPolicy>
  <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
    <MaxFileSize>60000KB</MaxFileSize>
  </triggeringPolicy>
</appender

L'exemple ci-dessus, concernant le fichier de log principal core.log permet de conserver 20 fichiers de logs de 60Mo maximum chacun.

Pour plus d'information sur la configuration, vous pouvez consulter le site Log4j ou encore cette documentation : https://logback.qos.ch/manual/appenders.html#RollingFileAppender

Sv translation
languageen

Introduction

BlueMind keeps logs for each type of application and usage.

Avertissement

It is important to have enough diskspace for logs and their archives.

If the diskspace gets too full, new information will no longer be saved which may cause the server to slow down, and possibly services to stop.

Volet

On this page:

Sommaire
maxLevel2

Related:
Logs - Fichiers journaux

There are 3 types of log files:

  • system logs, which are managed by system log management mechanisms (rsyslog + logrotate)
  • logs for BlueMind's Java services, managed by LogBack

    Remarque
    titleTrace times

    The traces generated by Java in these files are on GMT.

    I.e. in France, in the Europe/Paris time zone, the time is GMT +1 in the winter and GMT +2 in the summer. To find events that took place at 3pm, you will need to search:

    • at 14.00 from late October to late March
    • at 13.00 from late March to late October
  • internal service logs, managed via the service's configuration

The duration for which the logs are kept depends on the logs management mechanisms. Their configuration can be modified to the desired duration.

LogBack configuration

Default configuration files are located in the directory /usr/share/bm-conf/logs/:

  • bm-core-audit.log.xml
  • bm-core.log.xml
  • bm-eas.log.xml
  • bm-hps.log.xml
  • bm-ips.log.xml
  • bm-lmtpd.log.xml
  • bm-locator.log.xml
  • bm-milter.log.xml
  • bm-node.log.xml
  • bm-pimp.log.xml
  • bm-tika.log.xml
  • bm-webserver.log.xml
  • bm-xmpp.log.xml
  • bm-ysnp.log.xml

To edit them, copy the file to /etc/bm/local and edit the copy.

Example of configuration:

Bloc de code
<appender name="R" class="ch.qos.logback.core.rolling.RollingFileAppender">
  <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender -->
  <File>/var/log/bm/core.log</File>
  <encoder>
    <pattern>%d [%thread] %c{1} %p - %m\n</pattern>
  </encoder>
  <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
    <maxIndex>20</maxIndex>
    <FileNamePattern>/var/log/bm/core.log.%i.gz</FileNamePattern>
  </rollingPolicy>
  <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
    <MaxFileSize>60000KB</MaxFileSize>
  </triggeringPolicy>
</appender

The example above, about the mail log file core.log, is used to keep 20 log files of 60MB each maximum.

For more information about configuration, please visit the Log4j website or this documentation: https://logback.qos.ch/manual/appenders.html#RollingFileAppender

Sv translation
languagede

Präsentation

BlueMind speichert Protokolldateien für jede Art von Anwendung und Nutzung.

Avertissement

Es ist wichtig, genügend Speicherplatz zur Verfügung zu stellen, um die Protokolldateien und ihre Archive speichern zu können.

Die Sättigung dieses Speicherplatzes verhindert die Aufzeichnung neuer Informationen in den Protokolldateien und kann dazu führen, dass Dienste langsamer werden oder sogar einfrieren.

Volet

Auf dieser Seite:

Sommaire
maxLevel2

Verwandt:
Logs - Fichiers journaux

Es gibt 3 Arten von Protokolldateien :

  • Systemprotokolle, verwaltet durch den Systemprotokoll-Verwaltungsmechanismus (rsyslog + logrotate)
  • BlueMind Java-Dienstprotokolle, verwaltet von LogBack

    Remarque
    titleUhrzeit der Traces

    Die von Java generierten Traces in diesen Dateien sind in GMT-Zeit.

    So sind in Frankreich, in der Zeitzone Europa/Paris, die Stunden im Winter um 1 Stunde und im Sommer um 2 Stunden versetzt. Um nach Terminen zu suchen, die um 15 Uhr stattfanden, führen Sie folgende Suche durch:

    • 14 Uhr von Ende Oktober bis Ende März
    • 13 Uhr von Ende März bis Ende Oktober
  • Dienst-interne Protokolldateien, die über die Konfiguration dieses Dienstes verwaltet werden

Die Aufbewahrungsdauer hängt von den Einstellungen dieser Protokollverwaltungsmechanismen ab. Es ist möglich, ihre Konfiguration auf die gewünschte Aufbewahrungszeit zu ändern.

LogBack-Konfiguration

Die Standardkonfigurationsdateien befinden sich im Verzeichnis /usr/share/bm-conf/logs/:

  • bm-core-audit.log.xml
  • bm-core.log.xml
  • bm-eas.log.xml
  • bm-hps.log.xml
  • bm-ips.log.xml
  • bm-lmtpd.log.xml
  • bm-locator.log.xml
  • bm-milter.log.xml
  • bm-node.log.xml
  • bm-pimp.log.xml
  • bm-tika.log.xml
  • bm-webserver.log.xml
  • bm-xmpp.log.xml
  • bm-ysnp.log.xml

Um Änderungen vorzunehmen, kopieren Sie die gewünschte Datei nach /etc/bm/local und ändern Sie die Kopie.

Konfigurationsbeispiel:

Bloc de code
<appender name="R" class="ch.qos.logback.core.rolling.RollingFileAppender">
  <!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender -->
  <File>/var/log/bm/core.log</File>
  <encoder>
    <pattern>%d [%thread] %c{1} %p - %m\n</pattern>
  </encoder>
  <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
    <maxIndex>20</maxIndex>
    <FileNamePattern>/var/log/bm/core.log.%i.gz</FileNamePattern>
  </rollingPolicy>
  <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
    <MaxFileSize>60000KB</MaxFileSize>
  </triggeringPolicy>
</appender

Das auf die Log-Hauptdatei core.log bezogene obige Beispiel ermöglicht es, 20 Logdateien von jeweils maximal 60 MB zu speichern.

Weitere Informationen zur Konfiguration finden Sie auf der Log4j-Website oder in dieser Dokumentation: https://logback.qos.ch/manual/appenders.html#RollingFileAppender