Re: Squirrel Loggen config problem

Paul Lesniewski <[email protected]> Wed, 19 Aug 2015 20:39:10 -0700
Newsgroups gmane.mail.squirrelmail.plugins
Message-ID <CAHog116iL3AZj8KyrYR8TuQR9k4XQQLG0m-HKDAvvi_5_v3aGQ@mail.gmail.com>
On 8/19/15, Don Levey <[email protected]> wrote:
> On 8/19/2015 20:15, Paul Lesniewski wrote:
>> On 8/19/15, Don Levey <[email protected]> wrote:
>>> ...
>>> I have followed the instructions in the INSTALL document included in the
>>> plugin package, and yet (even with the default options) I get the
>>> following error using configtest.php:
>>>
>>>     ERROR: Squirrel Logger plugin is configured to log the "ERROR" event
>>> in $sl_logs, but that event is not enabled in $sl_log_events
>>>
>>> Ideally, I would have the errors logged, to a file, but even though the
>>> $sl_logs and $sl_log_events match
>>
>> The error tells you they don't "match" and I doubt it's wrong.
>>
>>> I get the error above.  Any thoughts
>>> on how I might resolve this?
>>
>> Look again.  You can post log file snippets if you can't see it.
>
> Well, I don't have a log file yet; that's kinda what I'm trying to do.

Was a typo - I meant *configuration* file snippets.....


> But the config.php file has:
>
>    $sl_log_events = array(
>                              'LOGIN',
>                              'LOGOUT',
>                              'TIMEOUT',
> //                             'OUTGOING_MAIL',
> //                             'MASS_MAILING',
>                              'LOGIN_ERROR',
> //                             'ERROR',
> //                             'CAPTCHA',
> //                             'RESTRICT_SENDERS',
> //                             'LOCKOUT',
>    );
> (lines 41-52)
>
> and
>
>    $sl_logs = array(
>       'SYSTEM:LOG_INFO:LOG_MAIL' => array(
> //         'LOGIN'            => "Successful webmail login: by %2 (%3)
> at %4 on %6: %7",
> //         'LOGOUT'           => "Webmail logout: by %2 (%3) at %4 on
> %6: %7",
> //         'TIMEOUT'          => "Webmail session timed out: by %2 (%3)
> at %4 on %6: %7",
> //         'OUTGOING_MAIL'    => "Message sent via webmail: by %2 (%3)
> at %4 on %6: %7",
> //         'MASS_MAILING'     => "Possible outgoing spam: by %2 (%3) at
> %4 on %6: %7",
> //         'LOGIN_ERROR'      => "Failed webmail login: by %2 (%3) at %4
> on %6: %7",
> //         'ERROR'            => "Webmail error: by %2 (%3) at %4 on %6:
> %7",
> //
> // The following correspond to events generated by other plugins:
> //
> //         'CAPTCHA'          => "Webmail CAPTCHA litmus: by %2 (%3) at
> %4 on %6: %7",
> //         'RESTRICT_SENDERS' => "Failed recipient limit: by %2 (%3) at
> %4 on %6: %7",
> //         'LOCKOUT'          => "Webmail login page abuse: by %2 (%3)
> at %4 on %6: %7",
>       ),
>       'SYSTEM:LOG_ALERT:LOG_AUTH' => array(
> //         'MASS_MAILING'  =>  "Possible outgoing spam: by %2 (%3) at %4
> on %6: %7",
>       ),
>       'FILE'   => array(
>          'LOGIN'         =>  "%6 [%1] %2 (%3) from %4: %7\n",
>          'LOGOUT'        =>  "%6 [%1] %2 (%3) from %4: %7\n",
>          'TIMEOUT'       =>  "%6 [%1] %2 (%3) from %4: %7\n",
> //         'MASS_MAILING'  =>  "%6 [%1] %2 (%3) from %4: %7\n",
>          'LOGIN_ERROR'   =>  "%6 [%1] %2 (%3) from %4: %7\n",
> //         'LOGIN_ERROR'   =>  "%6 [INVALID] %2 (%3) from %4: %7\n",
> //         'ERROR'         =>  "%6 [%1] %2 (%3) from %4: %7\n",
>       ),
>       'SQL'    => array(
> //         'LOGIN'         =>  'LOGIN',
> //         'LOGOUT'        =>  'LOGOUT',
> //         'TIMEOUT'       =>  'TIMEOUT',
> //         'MASS_MAILING'  =>  'MASS_MAILING',
> //         'LOGIN_ERROR'   =>  'INVALID',
> //         'ERROR'         =>  'ERROR',
>       ),
>    );
> (lines 126-162)
>
> >From what I can tell, "ERROR" is commented out in both sections.  Is
> there another section I've missed, where this might be set?

Does look to be commented out everywhere.  This likely means there is
another configuration file that is being read.  Use find or locate to
help figure it out.  Another fast way to see if a file is being used
-- only on non-production, low volume or private servers -- is to
introduce a PHP syntax error into the configuration file and see if it
causes SquirrelMail to malfunction (watch your logs too).  RedHat does
move its configuration files around...

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins