Getting Data In

mysql service monitor

Jaina
New Member

Hi,

I need to monitor all the changes of a mysql server including data, tables, indexings and every thing. how can i do that?

Regards Amartya

Tags (1)
0 Karma

Jaina
New Member

Hi,

Thanks a lot for your reply.

Regards Amartya

0 Karma

southeringtonp
Motivator

Splunk doesn't really do database change monitoring directly, but there are a few ways to approach it.

Listed in order of preference:

  • Configure MySQL to log all queries, then have Splunk index the log file, and monitor for DDL commands (`CREATE`, `UPDATE`, `ALTER`, etc.).

  • Use a third-party database monitoring product that generates output in a text-based format that can be indexed by Splunk.

  • Roll your own using scripted inputs. Either generate snapshots from the database containing the information you want to monitor and use `diff`, or watch for the changes yourself. This option will likely be painful.


If you are going to go with the first option, these may help get you started:

     http://www.howtogeek.com/howto/database/monitor-all-sql-queries-in-mysql/

     http://www.electrictoolbox.com/logging-queries-with-mysql/

     http://dev.mysql.com/doc/refman/5.1/en/query-log.html

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...