GithubHelp home page GithubHelp logo

ta-mysql-audit's Introduction

MySQL query audit add-on for Splunk

Travis CI build status

This CIM compliant add-on provides field extractions, aliases and tags for MySQL query audit logging in both "NEW" and "OLD" XML format.

Install the MySQL query audit add-on

Single instance Splunk deployments

  1. In Splunk, click on "Manage Apps"
  2. Click "Browse more apps", search for "MySQL query audit" and install the add-on

Distributed Splunk deployments

Instance type Supported Required Description
Search head Yes Yes Install this add-on on your search head(s) where CIM compliance of MySQL query audit logging is required
Indexer Yes Conditional Install this add-on on your indexer(s) if you are using Universal Forwarder to collect the audit data. If you are using Heavy Forwarders, installation on indexers is not required.
Universal Forwarder Yes No This add-on is not meant to be installed on Universal Forwarders
Heavy Forwarder Yes Yes Install this add-on if you use a heavy forwarder to monitor MySQL query audit logging. In that case, this add-on doesn't have to be installed on indexers.

The following table lists support for distributed deployment roles in a Splunk deployment:

Deployment role Supported Description
Search head deployer Yes Install this add-on on your search head deployer to enable CIM compliance of MySQL query audit logging on a Search Head Cluster
Cluster Master Yes Install this add-on on your Cluster Master to ensure correct parsing operations on all cluster peers
Deployment Server Yes Install this add-on on your Deployment Server to deploy it to search heads and indexers, if you are not using a clustered deployment

Configure inputs for the MySQL query audit add-on

To collect the MySQL query audit logging, install a Universal Forwarder on your MySQL server(s). Refer to Install the universal forwarder software in the Splunk documentation for further details.

Then, create an inputs.conf to collect and send the data to the Splunk Platform:

[monitor://<MYSQL_AUDIT_LOG_PATH>/audit.log]
index = mysql
sourcetype = mysql:audit:xml
disabled = 0

Enable MySQL audit logging

Refer to the MySQL documentation for help with installing the Audit Log plugin on your MySQL server(s). To enable audit logging in XML format you have to install the audit_log plugin and configure the proper auditing format to use:

  1. Install the audit plugin: install plugin audit_log soname 'audit_log.so';
  2. Set the audit log format: set global audit_log_format=NEW

This will create the audit log file: /var/lib/mysql/audit.log

Support

This is an MIT licensed open source project without warranty of any kind. No support is provided. A public repository and issue tracker are available at https://github.com/jorritfolmer/TA-mysql-audit

ta-mysql-audit's People

Contributors

jorritfolmer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.