# Filebeat is not harvesting Mysql error logs

**URL:** <https://discuss.elastic.co/t/filebeat-is-not-harvesting-mysql-error-logs/206133>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 1, 2019, 9:19am UTC](https://discuss.elastic.co/t/filebeat-is-not-harvesting-mysql-error-logs/206133 "2019-11-01T09:19:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashima83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashima83/32/53828_2.png) [@Ashima83](https://discuss.elastic.co/u/Ashima83)\
**Post date:** [November 1, 2019, 9:19am UTC](https://discuss.elastic.co/t/filebeat-is-not-harvesting-mysql-error-logs/206133/1 "2019-11-01T09:19:13Z")

</div>

Filebeat is harvesting mysql slow logs and that can be seen on Kibana dashboard but it isnt harvesting the mysql error log files.

Below is the mysql.yml:

```auto
# Module: mysql
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.3/filebeat-module-mysql.html

- module: mysql
  # Error logs
  error:
    enabled: true
    var.paths: ["/home/cmlogs/mysql_error.log*"] 
  # Slow logs
  slowlog:
    enabled: true
    var.paths: ["/home/mayank/cmlogs/slow-query.log*"]

---------------------------------------------------------------------------------------

```

permissions for both the logs is 644 mysql:mysql

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [November 1, 2019, 10:06pm UTC](https://discuss.elastic.co/t/filebeat-is-not-harvesting-mysql-error-logs/206133/2 "2019-11-01T22:06:42Z")

</div>

Hi @Ashima83 🙂

Please, can you post an example of the contents of the file? It is also useful to konw the version of Filebeat and MySQL you are using.

Thanks

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [November 1, 2019, 10:08pm UTC](https://discuss.elastic.co/t/filebeat-is-not-harvesting-mysql-error-logs/206133/3 "2019-11-01T22:08:11Z")

</div>

> [@Ashima83](#):
>
> var.paths: ["/home/cmlogs/mysql\_error.log\*"]

The path of your error log doesn't include `mayank`. Is that correct?

---

<div class="post-metadata">

**Author:** ![Ashima83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashima83/32/53828_2.png) [@Ashima83](https://discuss.elastic.co/u/Ashima83)\
**Post date:** [November 2, 2019, 4:52am UTC](https://discuss.elastic.co/t/filebeat-is-not-harvesting-mysql-error-logs/206133/4 "2019-11-02T04:52:18Z")

</div>

Yes! It does contain "mayank". Version of mysql is 5.6 and version of filebeat is 7.3.1

---

<div class="post-metadata">

**Author:** ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)\
**Post date:** [November 12, 2019, 11:41am UTC](https://discuss.elastic.co/t/filebeat-is-not-harvesting-mysql-error-logs/206133/5 "2019-11-12T11:41:56Z")

</div>

So can you share some example line from the logs that Filebeat is not harvesting? It might be a format issue

---

<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 10, 2019, 11:41am UTC](https://discuss.elastic.co/t/filebeat-is-not-harvesting-mysql-error-logs/206133/6 "2019-12-10T11:41:57Z")

</div>

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