Where are ZM authentications logged?

Forum for questions and support relating to the 1.24.x releases only.
Locked
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

Where are ZM authentications logged?

Post by btrotter »

I am using the opt_use_auth feature and have several users setup in ZM. I would like to check periodically to see who has logged in, how long they were logged in, etc.

The best I could find was looking at the /var/log/apache2/access.log and seeing different IP addresses coming in, but I was hoping for something a little easier to look at quick.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

you might need to write a script for that one but try doing a

Code: Select all

grep
on on file
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Coming in the next version or two will be a feature to have this information written to the DB as system events.
Phil
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Sweet, Phil.
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

Post by btrotter »

zoneminder wrote:Coming in the next version or two will be a feature to have this information written to the DB as system events.
Thats cool, thank you.

For now, even if I need to write a script which greps for something, would this go into the access.log, or is it logged anywhere?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It is not. The simplest thing to do would be to edit web/includes/functions.php and put something in the userLogin function, or in web/includes/actions.php where that function is called.
Phil
Locked