# How to audit mysql's log using auditbeat and display the log content on the elastic search page

**URL:** <https://discuss.elastic.co/t/how-to-audit-mysqls-log-using-auditbeat-and-display-the-log-content-on-the-elastic-search-page/201126>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [September 26, 2019, 2:32am UTC](https://discuss.elastic.co/t/how-to-audit-mysqls-log-using-auditbeat-and-display-the-log-content-on-the-elastic-search-page/201126 "2019-09-26T02:32:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodboy](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@goodboy](https://discuss.elastic.co/u/goodboy)\
**Post date:** [September 26, 2019, 2:32am UTC](https://discuss.elastic.co/t/how-to-audit-mysqls-log-using-auditbeat-and-display-the-log-content-on-the-elastic-search-page/201126/1 "2019-09-26T02:32:31Z")

</div>

Now I'm thinking of replacing filebeat with auditbeat, but I don't know how to use auditbeat to audit mysql's log and display it on the elastic search page. I hope to get help. Thank you.

---

<div class="post-metadata">

**Author:** ![webmat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webmat/32/46191_2.png) [@webmat](https://discuss.elastic.co/u/webmat)\
**Post date:** [September 26, 2019, 1:59pm UTC](https://discuss.elastic.co/t/how-to-audit-mysqls-log-using-auditbeat-and-display-the-log-content-on-the-elastic-search-page/201126/2 "2019-09-26T13:59:38Z")

</div>

@goodboy Auditbeat is not the Beat you would want to use to monitor MySQL logs.

It's a valid approach to install both beats on your host.

---

<div class="post-metadata">

**Author:** ![goodboy](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@goodboy](https://discuss.elastic.co/u/goodboy)\
**Post date:** [September 27, 2019, 1:21am UTC](https://discuss.elastic.co/t/how-to-audit-mysqls-log-using-auditbeat-and-display-the-log-content-on-the-elastic-search-page/201126/3 "2019-09-27T01:21:00Z")

</div>

Thank you, so if you need to collect logs, you still need to use filebeat; another question is, Elastic search has opened the x-pack function, autidbeat to Elastic search output logs can only use elastic as a super administrator user? Because my attempts to use remote\_monitoring\_collector and kibana users were unsuccessful, I want to confirm that, thank you again.

---

<div class="post-metadata">

**Author:** ![webmat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webmat/32/46191_2.png) [@webmat](https://discuss.elastic.co/u/webmat)\
**Post date:** [September 27, 2019, 2:45pm UTC](https://discuss.elastic.co/t/how-to-audit-mysqls-log-using-auditbeat-and-display-the-log-content-on-the-elastic-search-page/201126/4 "2019-09-27T14:45:49Z")

</div>

Auditbeat does require root privilege, yes

---

<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:** [October 18, 2019, 2:59pm UTC](https://discuss.elastic.co/t/how-to-audit-mysqls-log-using-auditbeat-and-display-the-log-content-on-the-elastic-search-page/201126/5 "2019-10-18T14:59:05Z")

</div>

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