[resolved] Duplicate log entries

Dear folks,

one last question for tonight.
Running FreePBX 2.11 with Asterisk 11.2.

Essentially, every line in our full log file is duplicated.

For example:

[2013-03-22 03:35:01] Asterisk 11.2.1 built by root @ jenkins-el6-64.schmoozecom.net on a x86_64 running Linux on 2013-03-21 00:50:11 UTC
[2013-03-22 03:35:01] Asterisk 11.2.1 built by root @ jenkins-el6-64.schmoozecom.net on a x86_64 running Linux on 2013-03-21 00:50:11 UTC
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger_general_additional.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger_general_additional.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger_general_custom.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger_general_custom.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_additional.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_additional.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_custom.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] config.c: == Parsing ‘/etc/asterisk/logger_logfiles_custom.conf’: Found
[2013-03-22 03:35:01] VERBOSE[26003] logger.c: Asterisk Queue Logger restarted
[2013-03-22 03:35:01] VERBOSE[26003] logger.c: Asterisk Queue Logger restarted
[2013-03-22 03:35:01] VERBOSE[26003] asterisk.c: – Remote UNIX connection disconnected
[2013-03-22 03:35:01] VERBOSE[26003] asterisk.c: – Remote UNIX connection disconnected

This results in very large log files (up to half a gig a day). Also, it makes call logs more difficult to read. Surely there must be a way to configure the logger not to do that. But does anyone know where?

This may be because you updated core and also installed the asterisk logfile package. If you check the logger*.conf files you will see that it lists everything twice.

You should be able to delete the logger conf files and let the gui recreate them.

Hmm very interesting.
I found out that logger_logfiles_additional.conf and logger_logfiles_custom.conf contained the exact same entries.
After emptying the custom file and reloading the logger, it stopped behaving that way and logs only singe lines now.
This is a relatively new install, and for sure we didn’t edit the custom file at any time.
Was there a time where FreePBX would write to the custom file?

Also, out logger.conf has a [general] and (iirc) [logger] or [logfiles] section that both include the same files. I tried commenting out one section, but then nothing gets logged.

Either way, thank you for your pointer about the logger* files, that was indeed the problem for some reason!

I think when u install the asterisk log file it migrate the old setting to custom. Which is either a feature or a bug…not sure.

Ahh thanks that makes sense. I was wondering where that config in custom came from.
Thanks for clearing that up!

It could be useful in certain circumstances. I wouldn’t call it a bug, but rather unexpected behavior.