+ Post New Thread
Results 1 to 8 of 8
Virtual Learning Platforms Thread, Moodle logs in Technical; Currently moodle sends me an email listing failed login attempts - no problems there. However at the end of the ...
  1. #1
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    359
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Moodle logs

    Currently moodle sends me an email listing failed login attempts - no problems there.

    However at the end of the mail it says I can view the log at http://#####.#####.#####.sch.uk/mood...id=site_errors.

    Clicking the link gives a page not found.

    I can't find a file called log.php in .../moodle/course or anything in the database.

    It's obviously storing it somewhere, because it's sending the emails.

    So where is this info coming from? and how can I fix it to view it?

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Moodle logs

    Our 'failed login' log redirects to
    Code:
    http://vle.carrhill.lancs.sch.uk/course/report/log/index.php?chooselog=1&id=1&modid=site_errors
    Also, if you have access to the apache error log for the site, login faliures are recorded there also:
    Code:
    [Tue Nov 20 13:34:14 2007] [error] [client 10.73.25.163] [client 10.73.25.163]  http://vle.carrhill.lancs.sch.uk  Failed Login:  clmuolholland  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4, referer: http://vle.carrhill.lancs.sch.uk/
    [Tue Nov 20 13:36:14 2007] [error] [client 10.73.25.163] [client 10.73.25.163]  http://vle.carrhill.lancs.sch.uk  Failed Login:  clmuolholland  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4, referer: https://vle.carrhill.lancs.sch.uk/login/index.php
    [Tue Nov 20 14:00:34 2007] [error] [client 212.219.207.94] [client 212.219.207.94]  http://vle.carrhill.lancs.sch.uk  Failed Login:  trcooper  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322), referer: http://vle.carrhill.lancs.sch.uk/
    [Tue Nov 20 15:24:04 2007] [error] [client 10.73.26.43] [client 10.73.26.43]  http://vle.carrhill.lancs.sch.uk  Failed Login:  gking  Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b1) Gecko/2007110903 Firefox/3.0b1, referer: http://vle.carrhill.lancs.sch.uk/

  3. #3
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    359
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: Moodle logs

    Thanks Geoff - I assume that is the file that moodle uses to bring up Admin > Reports > logs > site errors ?

    I'm trying to find the file that inputs the link into the email so I can change it. The above file seems to be correct so there must be another one about somewhere :?

    Any ideas?

    btw - moodle tracker number is MDL-12293 if anyone is interested.

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Moodle logs

    Moodle sends out email via it's cron.php script. I'd start hunting there.

  5. #5
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    359
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: Moodle logs

    I can't find anything in the Cron files There is a reference to the function in moodle/lib/moodlelib.php (notify_login_failures) approx line 5405.

    Apparently the problem still exists in 1.8.2+ which version are you running?

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Moodle logs

    1.8.3+ and 1.9-dev

  7. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Moodle logs

    Found it. <moodle directory>/lang/en_utf8/moodle.php. Lines 1044, 1046 and 1047.

  8. #8
    alan-d's Avatar
    Join Date
    Aug 2005
    Location
    Sutton Coldfield
    Posts
    2,414
    Thank Post
    359
    Thanked 256 Times in 187 Posts
    Rep Power
    75

    Re: Moodle logs

    SNAP!!!!

    Only mine are on lines 990 & 991

    Thanks anyway

SHARE:
+ Post New Thread

Similar Threads

  1. NSS 9 - tutor PCs need setup for every user that logs on.
    By Halfmad in forum Network and Classroom Management
    Replies: 4
    Last Post: 23rd August 2007, 03:16 PM
  2. Squid logs
    By srochford in forum How do you do....it?
    Replies: 12
    Last Post: 13th April 2007, 12:53 PM
  3. Checking internet filter logs...
    By _Bat_ in forum How do you do....it?
    Replies: 15
    Last Post: 13th December 2006, 04:13 PM
  4. ISA 2004 anonymous in web logs....
    By mullet_man in forum Wireless Networks
    Replies: 5
    Last Post: 6th December 2006, 05:15 PM
  5. ISA server logs
    By krisd32 in forum Windows
    Replies: 4
    Last Post: 27th September 2006, 02:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •