# Is it possible to record all the commands run in Mariadb to the elasticsearch?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-record-all-the-commands-run-in-mariadb-to-the-elasticsearch/288987>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [November 11, 2021, 11:01am UTC](https://discuss.elastic.co/t/is-it-possible-to-record-all-the-commands-run-in-mariadb-to-the-elasticsearch/288987 "2021-11-11T11:01:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennethcheung](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@kennethcheung](https://discuss.elastic.co/u/kennethcheung)\
**Post date:** [November 11, 2021, 11:01am UTC](https://discuss.elastic.co/t/is-it-possible-to-record-all-the-commands-run-in-mariadb-to-the-elasticsearch/288987/1 "2021-11-11T11:01:34Z")

</div>

Let say someone in my team run a command "SELECT \* FORM TESTTABLE" in the Mariadb, and I hope the Elasticsearch can receive the command and record it down rather the output result.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/a/faea75a4565b269f9848725b5039619b0760366a.png)  
Can anyone show me how to do this in the logstash.conf file? Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 9, 2021, 11:01am UTC](https://discuss.elastic.co/t/is-it-possible-to-record-all-the-commands-run-in-mariadb-to-the-elasticsearch/288987/2 "2021-12-09T11:01:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
