Raised This Month: $ Target: $400
 0% 

Logs On Website?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 02-27-2011 , 08:05   Logs On Website?
Reply With Quote #1

Anyone know how I could get my server logs to appear on my website? It'd be handy if all my Admins were able to view logs of the previous days, to find abusive players etc.

For an example, the Saigns.de clan have their logs appear on their website and they update every few minutes.

http://serverlog.saigns.de/

Is there a built in feature that lets you do this?
Snaggle is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 02-27-2011 , 09:47   Re: Logs On Website?
Reply With Quote #2

love me
also
it's only a sample
... demo: http://xpenia.pp.ru/logtest?y=2010&m=12&d=27;
Attached Files
File Type: txt logtest.php.txt (1.6 KB, 143 views)

Last edited by Leonardo; 02-27-2011 at 10:05. Reason: updated code
Leonardo is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 02-27-2011 , 09:51   Re: Logs On Website?
Reply With Quote #3

Thanks, where would this go? I host my servers with Gameservers and the website is hosted seperately. Could it still work?
Snaggle is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 02-27-2011 , 09:53   Re: Logs On Website?
Reply With Quote #4

Quote:
Originally Posted by Snaggle View Post
Could it still work?
errr... you must add http/ftp access then
edit LOG_DIR define with new url

I have installed website and srcds on a single machine... because I can do it

also
better way to store all chat messages in DB
and read from there with PHP
__________________

Last edited by Leonardo; 02-27-2011 at 10:17.
Leonardo is offline
Nomarky
SourceMod Donor
Join Date: Sep 2007
Old 02-28-2011 , 07:08   Re: Logs On Website?
Reply With Quote #5

Interesting stuff Leonardo! Could you post a version that lists the entire contents of a log file? I already have chat logs in Hlstats, but would like to use this to display the admin action logs I have on my servers: easier this way than logging into the server to read them!

Thanks!
Nomarky is offline
Boltersdriveer
Member
Join Date: Jan 2011
Old 02-28-2011 , 08:13   Re: Logs On Website?
Reply With Quote #6

Be sure to keep the CHMOD to 777 so the server can read it.
Boltersdriveer is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 02-28-2011 , 08:46   Re: Logs On Website?
Reply With Quote #7

Quote:
Originally Posted by Nomarky View Post
Could you post a version that lists the entire contents of a log file?
you can found log files in /logs/ folder (not /addons/sourcemod/logs/ or something else). also I've got sv_logfile enabled.

in other words
this stucture is very specific
each administator must do it as he like/can

Last edited by Leonardo; 02-28-2011 at 09:02.
Leonardo is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 02-28-2011 , 14:34   Re: Logs On Website?
Reply With Quote #8

I can't get it to work, "No valid items found".
Snaggle is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 02-28-2011 , 16:09   Re: Logs On Website?
Reply With Quote #9

if you're trying to run without GET inputs (year, month, day), script trying to load history from current date
"No valid items found" will show if pasrer not found "say" or "say_team" commands in logs for chosen date.

also
it's a sample. don't use for public usage

Last edited by Leonardo; 02-28-2011 at 16:11.
Leonardo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode