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
languageen

Introduction

BlueMind keeps log files for each application and usage type.

Avertissement

It is important to provide for enough disk space to store log and archive files.

Space overload stops new information from being saved into log files and can lead to sluggish, and possibly blocked, services.

 

 

Volet

On this page:

Sommaire
maxLevel2

Related:

Applications et Composants

There are 3 types of log files:

  • system logs, which rely on log administration mechanisms (rsyslog + logrotate)
  • BlueMind's Java services log, which rely on LogBack

    Remarque
    titleTrack times

    Java-generated tracks in these files are set to GMT.

    As a result, in France, which is in the Europe/Paris time zone, times are +1h in the winter and +2h in the summer. To find items that took place at 15:00, you need to look for:

    • 14:00 from late October to late March
    • 13:00 from late March to late October
  • internal service logs, managed by each service's configuration.

Storage time depends on each log administration mechanism's settings. These settings can be changed to the desired storage time.

Log files

Les fichiers journaux se trouvent dans le dossier /var/log et ses sous-dossiers

ComponentPackage NameLog FileTypeDescription
BlueMind Corebm-core

./bm/ :

  • core.log
  • mail-index.log
  • slow-call.log

./bm/audit/ :

  • audit-calendar*.log
LogBack

Main BlueMind service:

  • manages database contents, implements job rules
  • indexation des mails lors de l’exécution des tâches de réindexation
  • requêtes ayant pris plus de 200 ms à s’exécuter

Audit :

  • Trace les actions réalisées dans le calendrier indiqué dans le nom du fichier : audit-calendar:<nom du calendrier>:<uid de l'utilisateur>.log...
Postfixpostfix

RedHat: ./maillog

Debian/Ubuntu:

  • ./mail.err
  • ./mail.info
  • ./mail.log
  • ./mail.warn
System

Postfix forwarding service which sends emails to recipients' mailbox or server.

Cyrusbm-cyrus-imapd

RedHat: ./maillog

Debian/Ubuntu:

  • ./mail.err
  • ./mail.info
  • ./mail.log
  • ./mail.warn
System

Cyrus IMAP mail service. Permet de:

  • place an email in the corresponding mailbox and access it through IMAP and/or POP.
  • filter emails on reception
  • manage away message
  • manage redirects
Webmailbm-webmail./bm-webmail/ :
  • errors
  • sendmail
    mailSent.log
LogBack


 

  • errors from the webmail service (Round Cube).
  • keeps track of all sent messages as well as rules applied to these messages (alias, redirection, etc.).
Proxy IMAPbm-ips./bm-ips/ips.logLogBackTracks IMAP operations (moved files, deletions, etc.), including when they are carried out from BlueMind webmail
Synchronisation EASbm-eas./bm-eas/eas.logLogBackTracks operations carried out to and from mobile devices connected through EAS.
In addition, logs for each synchronization file are stored in separate files, which makes the analysis of bugs or erroneous behavior easier.
Mail forwardingbm-lmtpd./bm-lmtpd/lmtpd.logLogBack

Service that delivers emails to the corresponding mailbox.

Some BlueMind-related operations are carried out here - ICS invitation analysis, for example.

Localizationbm-locator

./bm-locator/locator.log

LogBackLocate user-specific services (mailbox server, etc.)
Mapibm-mapi

./mapi.log
./activities.log

LogBackLog général du service mapi
Log d'activité
Pour des informations plus détaillées, consultez la page dédiée aux Résolution des problèmes avec Outlook.
Replication
./bm/replication.logLogBack
Identificationbm-node./bm-node/node.logLogBack

Service that allows the BM-Core server to run system operations on the BlueMind architecture nodes.

The log file tracks commands.

BlueMind web serverbm-webserver./bm-webserver/ :
  • dav.log
  • js-errors.log
  • setup.log
  • webserver.log
LogBackDirectory containing log files generated by the webserver service.
Includes calendar synchronization tracking.
  • synchronisations des calendriers et agendas.
  • synchronisation via caldav/carddav
  • erreurs JS sur les applications web
  • mises à jour de BlueMind
Authenticationbm-hps./bm-hps/hps.logLogBackTracks successful authentications, authentication issues and sessions started
Tikabm-tika./bm-tika/tika.logLogBack

Extracts metadata and document data for the ES index.
Tracks information indexing extraction errors.

PHP FPMbm-php-fpm

./bm-php-fpm:

  • bm-php-fpm.log
  • slow.log
LogBack

PHP interpreters.

The slow.log file contains PHP requests longer than 15s.

ElasticSearchbm-elasticsearch./bm-elasticsearchInterne

ElasticSearch service logs.

*_slowlog.log files contain slow requests.

Possible log configuration modifications to this service may be lost after a BlueMind update.

Milterbm-milter./bm-milter/milter.logLogBackSMTP analysis and modification of emails.
XMPPbm-xmpp./bm-xmpp/xmpp.logLogBack

Instant messaging logs.

YSNPbm-ysnp./bm-ysnp/ysnp.logLogBack

Service that allows Postfix or Cyrus to obtain or verify data with BlueMind:

  • SMTP and IMAP authentication
  • ACLs IMAP ACLs resolution
  • blocks mail flows when BlueMind is under maintenance or being updated
PostgreSQLbm-postgresql./postgresqlInterne+logrotate

PostgreSQL database logs.

This component's configuration can be edited using the file /etc/postgresql/9.6/main/postgresql.conf.local

NGinxbm-nginx

./nginx:

  • access.log
  • error.log
  • webmail.log
Interne+logrotate

The NGinx services allows HTTP and HTTPs access to BlueMind.

  • access.log contains all HTTP and HTTPs requests made to BlueMind
  • error.log contains all HTTP and HTTPs error requests or request whose return code shows an error (4xx, 5xx)
  • webmail.log contains all HTTP and HTTPs requests made through webmail or error requests or requests whose return code shows an error (4xx, 5xx)

LogBack configuration

By 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 you want to edit into /etc/bm/local and edit the copy.

Configuration example:

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

In the example above, the main log file core.log can keep 20 log files of 60Mb each at the most.

For more information about configuration, please refer to the site Log4j or the following documentation: https://logback.qos.ch/manual/appenders.html#RollingFileAppender

Enregistrer

Enregistrer

Enregistrer

Enregistrer