[LMA] MySQL logs aren't collected anymore

Bug #1507962 reported by Simon Pasquier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Invalid
Medium
LMA-Toolchain Fuel Plugins
StackLight
Fix Released
Medium
guillaume thouvenin
0.8
Won't Fix
Undecided
Unassigned
0.9
Won't Fix
Undecided
Unassigned

Bug Description

Tested on MOS 7.0 with the LMA master branch.

There's no mysql logs in Elasticsearch because the mysqld logs are at /var/log/mysql/error.log while Heka is looking at the /var/log/mysqld.log file.

Note that when the node is rebooted, MySQL logs again to /var/log/mysqld.log...

Tags: lma
Changed in lma-toolchain:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → LMA-Toolchain Fuel Plugins (mos-lma-toolchain)
description: updated
Revision history for this message
Éric Lemoine (elemoine) wrote :

Any explanation for MySQL saving logs in /var/log/mysql/error.log and then in /var/log/mysqld.log after reboot? Does that make any sense to you?

Revision history for this message
Simon Pasquier (simon-pasquier) wrote :

@Eric, I don't have the exact explanation but it probably has to do with Fuel configuring MySQL with Syslog and for some reason, it isn't taken into account before a reboot.

Changed in lma-toolchain:
milestone: none → 0.9.0
Revision history for this message
Patrick Petit (patrick-michel-petit) wrote :

Is that bug confirmed in MOS 8?

Revision history for this message
guillaume thouvenin (guillaume-thouvenin) wrote :

I confirm that the bug is still here for MOS 8.

Revision history for this message
guillaume thouvenin (guillaume-thouvenin) wrote :

I also confirm that as Simon said there is a configuration in rsyslog for mysql to log in /var/log/mysqld.log. So for some reason this configuration is not taken into account when the node is started the first time but after the reboot it behaves as expected.

Revision history for this message
guillaume thouvenin (guillaume-thouvenin) wrote :
Changed in lma-toolchain:
assignee: LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → guillaume thouvenin (guillaume-thouvenin)
Swann Croiset (swann-w)
Changed in fuel-plugins:
status: Confirmed → Invalid
Changed in lma-toolchain:
status: Fix Committed → Fix Released
no longer affects: lma-toolchain/1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.