4
The :program:`logging_query` plugin logs queries to a CSV file.
6
.. _logging_query_loading:
11
To load this plugin, start :program:`drizzled` with::
13
--plugin-add=logging_query
15
Loading the plugin may not enable or configure it. See the plugin's
16
:ref:`logging_query_configuration` and :ref:`logging_query_variables`.
18
.. seealso:: :doc:`/options` for more information about adding and removing plugins.
20
.. _logging_query_configuration:
25
These command line options configure the plugin when :program:`drizzled`
26
is started. See :doc:`/configuration` for more information about specifying
31
.. option:: --logging-query.enable
34
:Variable: :ref:`logging_query_enable <logging_query_enable>`
36
Enable logging to CSV file.
38
.. option:: --logging-query.filename
41
:Variable: :ref:`logging_query_filename <logging_query_filename>`
45
.. option:: --logging-query.pcre ARG
48
:Variable: :ref:`logging_query_pcre <logging_query_pcre>`
50
PCRE to match the query against.
52
.. option:: --logging-query.threshold-big-examined
55
:Variable: :ref:`logging_query_threshold_big_examined <logging_query_threshold_big_examined>`
57
Threshold for logging big queries by rows examined.
59
.. option:: --logging-query.threshold-big-resultset
62
:Variable: :ref:`logging_query_threshold_big_resultset <logging_query_threshold_big_resultset>`
64
Threshold for logging big queries by result set size.
66
.. option:: --logging-query.threshold-slow
69
:Variable: :ref:`logging_query_threshold_slow <logging_query_threshold_slow>`
71
Threshold for logging slow queries by execution time.
73
.. _logging_query_variables:
78
These variables show the running configuration of the plugin.
79
See `variables` for more information about querying and setting variables.
81
.. _logging_query_enable:
83
* ``logging_query_enable``
87
:Option: :option:`--logging-query.enable`
89
Enable logging to CSV file.
91
.. _logging_query_filename:
93
* ``logging_query_filename``
97
:Option: :option:`--logging-query.filename`
101
.. _logging_query_pcre:
103
* ``logging_query_pcre``
107
:Option: :option:`--logging-query.pcre`
109
PCRE to match the query against.
111
.. _logging_query_threshold_big_examined:
113
* ``logging_query_threshold_big_examined``
117
:Option: :option:`--logging-query.threshold-big-examined`
119
Threshold for logging big queries by rows examined.
121
.. _logging_query_threshold_big_resultset:
123
* ``logging_query_threshold_big_resultset``
127
:Option: :option:`--logging-query.threshold-big-resultset`
129
Threshold for logging big queries by result set size.
131
.. _logging_query_threshold_slow:
133
* ``logging_query_threshold_slow``
137
:Option: :option:`--logging-query.threshold-slow`
139
Threshold for logging slow queries by execution time.
141
.. _logging_query_examples:
146
Sorry, there are no examples for this plugin.
148
.. _logging_query_authors:
155
.. _logging_query_version:
160
This documentation applies to **logging_query 0.2**.
162
To see which version of the plugin a Drizzle server is running, execute:
164
.. code-block:: mysql
166
SELECT MODULE_VERSION FROM DATA_DICTIONARY.MODULES WHERE MODULE_NAME='logging_query'