How does the Rsyslog ommsql module connect to MySQL's non-standard database ports?

Source: Internet
Author: User
Tags rsyslog

When I was half-a-little, I looked for information. Finally, find him in an official document ...

Http://www.rsyslog.com/doc/ommysql.html

Sample:

The following sample writes all syslog messages to the database "syslog_db" on mysqlsever.example.com. The server is being accessed under the account of "user" with password "pwd".

$ModLoad Ommysql
* * Action (type= "Ommysql" server= "mysqlserver.example.com" serverport= "1234"
db= "syslog_db" uid= "user" pwd= "pwd")

Legacy Sample:

The same as above, but in Legacy config format (pre rsyslog-v6):

$ModLoad Ommysql
$ActionOmmysqlServerPort 1234 # Use non-standard port
*. *: Ommysql:mysqlserver.example.com,syslog_db,user,pwd

I realized it in the second way.

The first kind does not have the error, but the log display does not come out, temporarily does not engage.

How does the Rsyslog ommsql module connect to MySQL's non-standard database ports?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.