Docker logging

When you use the official Manticore docker image, the server log is sent to /dev/stdout which can be viewed from host with:

  1. docker logs manticore

The query log can be diverted to Docker log by passing variable QUERY_LOG_TO_STDOUT=true.

The log folder is the same as in case of Linux package set to /var/log/manticore. If desired, it can be mounted to a local path to view or process the logs.

Rotating query and server logs

Manticore Search accepts signal USR1 for reopening server and query log files.

The official DEB and RPM packages install a Logrotate conf file for all files in default log folder.

A simple logrotate conf for log files looks like:

  1. /var/log/manticore/*.log {
  2. weekly
  3. rotate 10
  4. copytruncate
  5. delaycompress
  6. compress
  7. notifempty
  8. missingok
  9. }

FLUSH LOGS

  1. mysql> FLUSH LOGS;
  2. Query OK, 0 rows affected (0.01 sec)

In addition, the FLUSH LOGS SQL command is available, which works same as system USR1 signal. Initiate reopen of searchd log and query log files, letting you implement log file rotation. Command is non-blocking (i.e., returns immediately).

▪️ Node info and management