Skip to content

Configuration file

This is the default mfbus configuration file.

```ini

STARTUP

[startup]

If flag=0, block the start of the module

flag=1

AUTORESTART

[autorestart]

If flag=1, then the autorestart feature is on

flag=1

MISC

[misc]

Max coredumps size (value for ulimit -c;

if core_size=-1, ulimit -c is not set)

core_size=0

tmp sub-directory (${MFMODULE_RUNTIME_HOME}/tmp) cleaning

0 => no automatic cleaning

x => clean files/directories older than x days

tmp_max_age=2

LOG

[log]

Log minimal level

DEBUG => everything,

INFO => everything but not DEBUG,

WARNING => everything but not DEBUG and INFO,

ERROR => everything but not DEBUG, INFO and WARNING,

CRITICAL => everything but not DEBUG, INFO, WARNING AND ERROR

minimal_level=INFO

Duplicate some log messages in JSON to a specific file (for external

monitoring tool)

If json_file value is :

null => the feature is desactivated

AUTO => the feature is desactivated (because it's not necessary anymore

since 1.2 version)

json_file=null

Minimal level for this json log file

DEBUG => everything,

INFO => everything but not DEBUG,

WARNING => everything but not DEBUG and INFO,

ERROR => everything but not DEBUG, INFO and WARNING,

CRITICAL => everything but not DEBUG, INFO, WARNING AND ERROR

Note: you can't send more messages to json log file than the configured global

minimal_level level (so also change the value of minimal_level key in

these uncommon use-cases)

json_minimal_level=WARNING

Send some log files to mfadmin

null => the feature is desactivated

AUTO => the feature is activated if [admin]/hostname != null

mfadmin_flag=AUTO

Minimal level for mfadmin send

DEBUG => everything,

INFO => everything but not DEBUG,

WARNING => everything but not DEBUG and INFO,

ERROR => everything but not DEBUG, INFO and WARNING,

CRITICAL => everything but not DEBUG, INFO, WARNING AND ERROR

Note: you can't send more messages to mfadmin than the configured global

minimal_level level (so also change the value of minimal_level key in

these uncommon use-cases)

mfadmin_minimal_level=WARNING

Maximum number of rotated files to keep

number_of_rotated_files=5

Max age of a log file before rotation (in seconds)

Default: 86400 (24H)

max_age_before_rotation=86400

Max size of a log file before rotation (in bytes)

Default: 104857600 (100 MB)

max_size_before_rotation=104857600

chmod on log files

Default : 0644

chmod=0644

Try to split stdout/stderr in distinct log files (when it's possible)

(1 => split, 0 => don't split)

try_to_split_stdout_stderr=0

Try to split multiple workers in distinct log files (when it's possible)

(1 => split, 0 => don't split)

try_to_split_multiple_workers=0

VECTOR

[vector]

UDP port used by vector syslog server (for mflog logs)

mflog_port = 0

ADMIN MODULE

[admin]

Hostname hosting the mfadmin module (if any)

null => no monitoring

localhost => send logs and metrics to the locally installed mfadmin module

* => send logs and metrics to the specified host (which must host an mfadmin

module)

hostname=null

Influxdb HTTP port on mfadmin host

(change this only if you changed influxdb http port on mfadmin host)

influxdb_http_port=18086

ElasticSearch HTTP port on mfadmin host

(change this only if you changed elasticsearch http port on mfadmin host)

(0 => no elasticsearch usage)

elasticsearch_http_port=15603

Loki HTTP port on mfadmin host

(change this only if you changed loki http port on mfadmin host)

(0 => no loki usage)

(13600 => default loki http port on mfadmin)

loki_http_port=0

If send_mflog_logs=1, send mflog logs to the configured admin hostname

send_mflog_logs=1

CIRCUS

[circus]

You probably don't want to change anything in this section

endpoint=ipc://{{MFMODULE_RUNTIME_HOME}}/var/circus.socket pubsub_endpoint=ipc://{{MFMODULE_RUNTIME_HOME}}/var/circus_pubsub.socket

RABBITMQ

[rabbitmq]

If flag=0, do not start rabbitmq (can be useful in some cases)

flag=1

Port AMQP of rabbitmq-server.

amqp_port=5672

Internal port of rabbitmq-server.

dist_port=25672

Port of management plugin

management_port=15672

Port of epmd (erlang) daemon

epmd_port=4369

TELEGRAF

[telegraf]

Telegraf statsd port (on this host)

Change this if it's already used

statsd_port=18130

if debug=1, put telegraf in trace mode (WARNING: produce a lot of logs)

debug=0

```