Socket

Sets the Unix socket path to use when connecting to the MariaDB/MySQL server.

This parameter applies to ommysql: MariaDB/MySQL Database Output Module.

Name:

socket

Scope:

input

Type:

word

Default:

input=none

Required?:

no

Introduced:

at least 7.x, possibly earlier

Description

This is the unix socket path of the MariaDB/MySQL server. When the server address is set localhost, the MariaDB/MySQL client library connects using the default unix socket specified at build time. If you run MariaDB/MySQL server and run the unix socket path differently than the default, you can set the socket path with this option.

Input usage

module(load="ommysql")
action(type="ommysql" server="localhost" socket="/var/run/mysqld/mysqld.sock" db="syslog_db" uid="user" pwd="pwd")

See also

See also ommysql: MariaDB/MySQL Database Output Module.


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.