Previous Thread
Next Thread
Print Thread
Hop To
#190800 07/11/2007 9:51 PM
Joined: Jun 2007
Posts: 286
T
enthusiast
enthusiast
T Offline
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
UBB.threads Developer
UBB.threads Developer
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
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
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
or you could take his route wink... 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)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2007
Posts: 286
T
enthusiast
enthusiast
T Offline
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 exist


I did this from the datebase SQL command window

-----------
Originally Posted by Sirdude
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
T
enthusiast
enthusiast
T Offline
Joined: Jun 2007
Posts: 286
Where do I get this tool ?

Thanks

Originally Posted by Gizmo
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
T
enthusiast
enthusiast
T Offline
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

Originally Posted by Sirdude
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
UBB.threads Developer
UBB.threads Developer
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2007
Posts: 286
T
enthusiast
enthusiast
T Offline
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"


Originally Posted by Gizmo
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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by teamzr1
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.

Originally Posted by teamzr1
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 wink

Code
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
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Dates are stored in the database as "Seconds Since the Unix Epoch" clicky clicky

This allows for dates to be offset for timezone differentials, different formats, etc clicky


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2007
Posts: 286
T
enthusiast
enthusiast
T Offline
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 frown


JR
Team ZR-1 Corvette Racer's
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
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...



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by teamzr1
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 frown


simple:

assume A1 contains that funky number:

paste '=A1/86400+"1/1/70"' into B1 and format the cell for date/time.. wink

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 wink

Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Yeh, what he said...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2007
Posts: 286
T
enthusiast
enthusiast
T Offline
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/1937

I found a date time format but then get
1183780091 7/5/37 4:08 AM

day/month right but year wrong

Originally Posted by Sirdude
Originally Posted by teamzr1
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 frown


simple:

assume A1 contains that funky number:

paste '=A1/86400+"1/1/70"' into B1 and format the cell for date/time.. wink

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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
[Linked Image from sirdude.com]

you sure you pasted it exactly ?

:shrug:

ps: i'm using m/d/y .. usa-ite .. dunno..

Joined: Jun 2007
Posts: 286
T
enthusiast
enthusiast
T Offline
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
UBB.threads Developer
UBB.threads Developer
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2007
Posts: 286
T
enthusiast
enthusiast
T Offline
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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Originally Posted by teamzr1
=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]

^^ see my formula and where the quotes are wink

Joined: Jun 2007
Posts: 286
T
enthusiast
enthusiast
T Offline
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

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (1 invisible), 304 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)