/
MariaDB Server

MariaDB Server

About the Device

MariaDB is a free, open-source relational database management system (RDBMS). It's a modified version of MySQL, and was created by the original developers of MySQL. Supports the following features, Open source, High performance, Scalable, supports multiple programming languages and supports major operating systems.

Device Information

 Entity

Particulars

 Entity

Particulars

Vendor Name

MariaDB Foundation (Open Source Vendor), MariaDB PLC (Commercial Vendor), K1 Investment Management (Investment Company)

Product Name

MariaDB Server

Type of Device

Hosted

Collection Method

Log Type

 Ingestion label

Preferred Logging Protocol - Format

Log collection method

Log Type

 Ingestion label

Preferred Logging Protocol - Format

Log collection method

Maria Database

MARIA_DB

CSV

CyberHub

Port Requirements

Source

Destination

Port

Source

Destination

Port

MariaDB Server

CyberHub

10014 (Secure_TCP)

To facilitate secure communication and align with our best practice, we strongly encourage the use of Transport Layer Security (TLS) between your security devices and our Adaptive MxDR platform for event forwarding.

While we understand that TLS support may not be available on all devices, if your devices do support TLS communication, we recommend utilizing port 10014 for seamless integration.

In some cases, the upgraded version of the device might incorporate TLS support without prior notice. If you come across such a scenario or for further assistance in configuring TLS, we kindly ask you to reach out to your dedicated Adaptive MxDR Service Delivery Lead.

Device Configuration

The below steps are validated on Linux distribution - Ubuntu 24.04.1 LTS.

Prerequisites:

  • Ensure MariaDB Server is installed and running in the machine.

  • Ensure that MariaDB server_audit plugin library must be located in the MariaDB plugin directory. This library can be found named as the server_audit.so or server_audit.dll as shared library in MariaDB packages directory with default installation.

To Install and Configure MariaDB Server Audit Plugin

  1. Login into CLI with root or similar privileges.

  2. Add the following configuration in the config blocks of MariaDB configuration file /etc/mysql/mariadb.conf.d/50-server.cnf to enable logging using Server Audit Plugin.

    1. In [server] block add the following:

      [server] plugin_load_add = server_audit server_audit_logging=ON

       

    2. In [mysqld] block add the following:

      [mysqld] server_audit_events=connect,query,table server_audit_output_type=file

       

      image-20250204-132442.png
    3. Optional Step - If customer wishes to implement log file rotation then it can be done by adding the following in [mysqld] block.

      server_audit_file_rotate_now=ON server_audit_file_rotate_size=1000000 server_audit_file_rotations=5

       

      image-20250212-135017.png

       

  3. Restart mariadb service.

     

After restarting the MariaDB service, it should start logging in the file.
If the default settings are applied, the logs will be saved in the default directory path./var/lib/mysql/server_audit.log

NxLog Configuration

Contact Adaptive MxDR on-boarding engineer to get CyberHub certificate.

  1. Download and install the NXLog Linux agent from the following location: https://nxlog.co/downloads/nxlog-ce#nxlog-community-edition

  2. Stop the NxLog service.

  3. Rename the attached file to nxlog.conf and copy into /etc/ folder.

  4. If MariaDB is configured with custom audit log path, update the File directive on line 25 with the correct audit log file path. By default, it is set to /var/lib/mysql/server_audit.log in the provided NXLog configuration.

  5. Replace the placeholder <CyberHub IP> with the actual CyberHub IP in the nxlog.conf file.

  6. Copy the certificate which you obtained from MxDR team on Linux machine where nxlog agent is installed and mention the cert path in nxlog.conf against "CAFile" on line number 34.

  7. Now, start the NxLog service.

  8. NxLog agent logs will be available at location /var/log/nxlog.log

  9. The log flow should work, and you can check it using tcpdump with the command "tcpdump -AA port 10014".

Logs does not contain time zone information, so it is recommended sending logs in UTC.

Integration Parameters

Parameters required from customer for Integration.

Property

Default Value

Description

Property

Default Value

Description

IP Address

MariaDB Server interface IP address

Hostname or IP address of the device which forwards logs to the CyberHub

 

About Accenture:
Accenture is a leading global professional services company that helps the world’s leading businesses, governments and other organizations build their digital core, optimize their operations, accelerate revenue growth and enhance citizen services—creating tangible value at speed and scale. We are a talent and innovation led company with 738,000 people serving clients in more than 120 countries. Technology is at the core of change today, and we are one of the world’s leaders in helping drive that change, with strong ecosystem relationships. We combine our strength in technology with unmatched industry experience, functional expertise and global delivery capability. We are uniquely able to deliver tangible outcomes because of our broad range of services, solutions and assets across Strategy & Consulting, Technology, Operations, Industry X and Accenture Song. These capabilities, together with our culture of shared success and commitment to creating 360° value, enable us to help our clients succeed and build trusted, lasting relationships. We measure our success by the 360° value we create for our clients, each other, our shareholders, partners and communities. Visit us at www.accenture.com.

About Accenture Security
Accenture Security is a leading provider of end-to-end cybersecurity services, including advanced cyber defense, applied cybersecurity solutions and managed security operations. We bring security innovation, coupled with global scale and a worldwide delivery capability through our network of Advanced Technology and Intelligent Operations centers. Helped by our team of highly skilled professionals, we enable clients to innovate safely, build cyber resilience and grow with confidence. Follow us @AccentureSecure on Twitter or visit us at www.accenture.com/security.

Legal notice: Accenture, the Accenture logo, and other trademarks, service marks, and designs are registered or unregistered trademarks of Accenture and its subsidiaries in the United States and in foreign countries. All trademarks are properties of their respective owners. This document is intended for general informational purposes only and does not take into account the reader’s specific circumstances, and may not reflect the most current developments. Accenture disclaims, to the fullest extent permitted by applicable law, any and all liability for the accuracy and completeness of the information in this presentation and for any acts or omissions made based on such information. Accenture does not provide legal, regulatory, audit, or tax advice. Readers are responsible for obtaining such advice from their own legal counsel or other licensed professionals.