summaryrefslogtreecommitdiffstats
path: root/source/configuration/global/options/rsconf1_modload.rst
blob: e60078459a4b91bfbd7a570cac929d762a3d875a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$ModLoad
--------

**Type:** global configuration parameter

**Default:**

**Description:**

Dynamically loads a plug-in into rsyslog's address space and activates
it. The plug-in must obey the rsyslog module API. Currently, only MySQL
and Postgres output modules are available as a plugins, but users may
create their own. A plug-in must be loaded BEFORE any configuration file
lines that reference it.

Modules must be present in the system default destination for rsyslog
modules. You can also set the directory via the
`$ModDir <rsconf1_moddir.html>`_ parameter.

If a full path name is specified, the module is loaded from that path.
The default module directory is ignored in that case.

**Sample:**

.. code-block:: none

  $ModLoad ommysql # load MySQL functionality
  $ModLoad /rsyslog/modules/ompgsql.so # load the postgres module via absolute path