Question about general Gameserver logs transfering.

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
Ben
New to forums
New to forums
Posts: 8
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Dec 17, 2014 6:31 am

Question about general Gameserver logs transfering.

Post by Ben »

Hello NFO Community,

I have a question about general log folders. So I have a game server for a game and It has its own log's folder in its Directory with every date its up. for example today's log folder would be called: server_08/12/2015.txt and it would contain what happens inside the server. I have my own domain hosted somewhere else. how would I be able to make these log files able to be streamed on a sub domain. for example: www.mydomain.com/serverlogs. then when the administrator clicks on the the .txt it would open the file on the webpage. So basically live log streaming.

Any PHP scripts or FTP commands would be gladly appreciated

Thanks for reading,
Ben
doulos9
This is my homepage
This is my homepage
Posts: 200
Joined: Sun Sep 15, 2013 9:44 pm

Re: Question about general Gameserver logs transfering.

Post by doulos9 »

Have you tried to get the logs via HLSW onto your own computer.
Ben
New to forums
New to forums
Posts: 8
Joined: Wed Dec 17, 2014 6:31 am

Re: Question about general Gameserver logs transfering.

Post by Ben »

I personally do not need the logs as i can download them manually via FTP but I want to stream it onto a webpage so that other admins can view them.
Caliban55
This is my homepage
This is my homepage
Posts: 439
Joined: Sat Sep 04, 2010 10:20 am
Location: Cologne, Gemany
Contact:

Re: Question about general Gameserver logs transfering.

Post by Caliban55 »

The easiest and fastest option would probably be to set up a restricted FTP account with read-only permissions for your admins (either generic one for everyone, or for each person an individual account).
User avatar
Edge100x
Founder
Founder
Posts: 13113
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Question about general Gameserver logs transfering.

Post by Edge100x »

One way to do this would be an automated rsync operation run from the webhosting machine that copies the files to your webhosting account.

Be careful with making them publicly available, because game logs can contain sensitive information such as client IP addresses.
Ben
New to forums
New to forums
Posts: 8
Joined: Wed Dec 17, 2014 6:31 am

Re: Question about general Gameserver logs transfering.

Post by Ben »

Thanks everyone got it working!
Post Reply