SRCDS Steam group


Send SRCDS Console Output to External Server
#1
Hello ->

I need some guidance. What I want to do is send each new line of console output from SRCDS to an external web server where a PHP script will handle it.

What is the simplest way to do this?

Thanks for your help =]
Reply
#2
if you are using a webserver PHP will have a max execution time after a process will be stopped. because of that you can not use PHP as a Deamon.

If you search the web you will find projects written in phyton that offer a deamon that requests the logdata (logadress add webhostip:port) and is able to parse the incomming data.

You also could take a look at Hlstatsx CE. Their logparser/deamon is written in Perl.
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.

You`ll also find precompiled debian gameserver kernels for download
Reply
#3
Would it be feasible to create a smallish serverside mod to send each new console line as POSTDATA to a PHP script?
Reply
#4
The srcds and hlds server have already logaddress add to send data to somewhere.
It is pointless to reinvent the wheel. Also I guess your idea will consume to much performance.

Take a look at the things I posted above. There is a good reason why they use the logaddress function Wink
Interactive web based config creator for CS, CSS, TF2 and DODS
Creates server and client configs in an explained dialog.

You`ll also find precompiled debian gameserver kernels for download
Reply
#5
As mentioned, you can make SRCDS send out the live logs... I wouldn't mess with creating a custom plugin unless you had to. Plugins need to be updated, live logs don't.
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)