|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
I assume in V7.25b there is no method to export the admin logs ?
If not where are these files located and are they just ascii files I can copy to my PC to make use of ?
Thanks
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
7.2 stores the access logs in the MySQL database; you can use a tool such as PHPMyAdmin to export data.
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
or just paste:
SELECT * FROM `ubbt_admin_log`
into your SQL textarea and execute, then copy to clipboard
*replace 'ubbt_' with your boards' prefix
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
or you could take his route  ... mine would actually ask you if youw anted to save it to a file, and if you wanted that file compressed (which could be useful for some users)
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
When I copied and pasted your content I get SELECT * FROM ubbt_admin_log
Table 'teamzron_zc1.ubbt_admin_log' doesn't existI did this from the datebase SQL command window ----------- or just paste:
SELECT * FROM `ubbt_admin_log`
into your SQL textarea and execute, then copy to clipboard
*replace 'ubbt_' with your boards' prefix
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Where do I get this tool ? Thanks 7.2 stores the access logs in the MySQL database; you can use a tool such as PHPMyAdmin to export data.
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
I figured it out, you used lowercase and it has to be ADMIN_LOG but I found I needed was SELECT * FROM ubbt_REFERER_LOG was the data I wanted but, kinda a pain since as mentioned I would have to copy paste that data to my PC Also I notice important is the time/date is missing in the data or just paste:
SELECT * FROM `ubbt_admin_log`
into your SQL textarea and execute, then copy to clipboard
*replace 'ubbt_' with your boards' prefix
Last edited by teamzr1; 07/11/2007 10:19 PM.
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
PHPMyAdmin comes with many webhosts pre-installed, generally mentioned as "MySQL Admin"; you can also install it from their site here.
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
That is an app supplied by the host provider, has phpMyAdmin - 2.9.0.2 I got it functional but I do not see date/time here either such as example one in referer_log 1,"1183780091","http://www.ls1tech.com/forums/showthread.php?t=743763" PHPMyAdmin comes with many webhosts pre-installed, generally mentioned as "MySQL Admin"; you can also install it from their site here.
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
I figured it out, you used lowercase and it has to be ADMIN_LOG but I found I needed was SELECT * FROM ubbt_REFERER_LOG was the data I wanted but, kinda a pain since as mentioned I would have to copy paste that data to my PC my bad, i have a doze box (local wamp) that i didn't maintain upper case on.. glad you caught that. 1,"1183780091","http://www.ls1tech.com/forums/showthread.php?t=743763" 1st field is date/time... use: FROM_UNIXTIME(REFERRER_DATE ,'%M %e, %Y - %h:%i %p') AS Time for that field  SELECT FROM_UNIXTIME(REFERER_DATE ,'%M %e, %Y - %h:%i %p')
AS Time, REFERER_URL
FROM `ubbt_REFERER_LOG`
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
Dates are stored in the database as "Seconds Since the Unix Epoch" clicky clickyThis allows for dates to be offset for timezone differentials, different formats, etc clicky
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Sheesh, why cannot they just give a simple formula so I could convert the values on another column in Excel to get the human time/date 
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
Because the data in the backend database isn't meant for humans? That's what the php frontend is for, to convert the time into your timezone/specified format...
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
Sheesh, why cannot they just give a simple formula so I could convert the values on another column in Excel to get the human time/date  simple: assume A1 contains that funky number: paste ' =A1/86400+"1/1/70"' into B1 and format the cell for date/time..  thus: 1183780091 becomes 7/7/07 3:48 AM *poof* done
|
|
|
|
|
Joined: Nov 2006
Posts: 3,097 Likes: 1
Carpal Tunnel
|
|
Carpal Tunnel
Joined: Nov 2006
Posts: 3,097 Likes: 1 |
You're too quick SD - Was going to say that Excel Excels at that sort of stuff 
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Hmm, Excel allows for a date or time format but not both so if I take the unix value and use that formula get this at date only format 1183780091 7/5/1937I found a date time format but then get 1183780091 7/5/37 4:08 AMday/month right but year wrong Sheesh, why cannot they just give a simple formula so I could convert the values on another column in Excel to get the human time/date  simple: assume A1 contains that funky number: paste ' =A1/86400+"1/1/70"' into B1 and format the cell for date/time..  thus: 1183780091 becomes 7/7/07 3:48 AM *poof* done
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
![[Linked Image from sirdude.com]](http://sirdude.com/screenies/exceldatefromnix.jpg) you sure you pasted it exactly ? :shrug: ps: i'm using m/d/y .. usa-ite .. dunno..
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Yes it was a cut and paste
with excel that I am using and US date/time format I used your timestamp as a test and also get 1937
here is cut and paste from excel =B1/86400+"1"/1/70 B1 is where the raw data is
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
Don't set the cell type to be a date, set it to be a standard cell (no set format) then you can dump any set of data there.
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
Gizmo do not understand that for if cell is formatted the answer becomes 13701.17275
JR Team ZR-1 Corvette Racer's
|
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
=B1/86400+"1"/1/70 B1 is where the raw data is your quotes are wrong ... use "1/1/70" and not "1"/1/70 ![[Linked Image from sirdude.com]](http://sirdude.com/screenies/exceldatefromnix.jpg) ^^ see my formula and where the quotes are 
|
|
|
|
|
Joined: Jun 2007
Posts: 286
enthusiast
|
|
enthusiast
Joined: Jun 2007
Posts: 286 |
That was the fix for now get
1183780091 7/7/07 3:48 AM 1183782164 7/7/07 4:22 AM 1183782270 7/7/07 4:24 AM 1183790397 7/7/07 6:39 AM 1183800199 7/7/07 9:23 AM 1183801869 7/7/07 9:51 AM 1183802583 7/7/07 10:03 AM 1183804040 7/7/07 10:27 AM 1183806865 7/7/07 11:14 AM 1183808433 7/7/07 11:40 AM
Not sure how excel did that as I pasted your's directly in maybe when a format was done excel assumed something ? In any case thanks that what I needed
JR Team ZR-1 Corvette Racer's
|
|
|
|
1 members (1 invisible),
304
guests, and
96
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
|