ServerPort

Selects a non-standard port for the MariaDB/MySQL server connection.

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

Name:

serverport

Scope:

input

Type:

integer

Default:

input=0 (system default port)

Required?:

no

Introduced:

at least 7.x, possibly earlier

Description

Permits to select a non-standard port for the MariaDB/MySQL server. The default is 0, which means the system default port is used. There is no need to specify this parameter unless you know the server is running on a non-standard listen port.

Input usage

module(load="ommysql")
action(type="ommysql" server="mysqlserver.example.com" serverPort="1234" db="syslog_db" uid="user" pwd="pwd")

Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

  • $ActionOmmysqlServerPort — maps to ServerPort (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.