MySQLConfig.Section¶
Chooses the section within the client configuration file specified by MySQLConfig.File.
This parameter applies to ommysql: MariaDB/MySQL Database Output Module.
- Name:
mysqlconfig.section
- Scope:
input
- Type:
word
- Default:
input=client
- Required?:
no
- Introduced:
at least 7.x, possibly earlier
Description¶
Permits the selection of the section within the client configuration file specified by the MySQLConfig.File parameter.
This parameter is only effective if MySQLConfig.File is also used. It is typically used when a database administrator provides a single configuration file with multiple profiles.
If omitted, the MariaDB/MySQL Client Library default of “client” will be used.
Input usage¶
module(load="ommysql")
action(type="ommysql"
server="mysqlserver.example.com"
mysqlConfig.file="/etc/mysql/my.cnf"
mysqlConfig.section="custom-client"
db="syslog_db" uid="user" pwd="pwd")
Legacy names (for reference)¶
Historic names/directives for compatibility. Do not use in new configs.
$OmMySQLConfigSection — maps to MySQLConfig.Section (status: legacy)
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.