Page 1 of 1

How to Enable Logging on a CS2 Dedicated Server

Posted: Wed Jul 22, 2026 2:59 am
by ice
How to Enable Logging on a CS2 Dedicated Server

Valve’s September 29, 2023 release notes document two ways to enable logging on a CS2 community dedicated server: through the startup command or through a configuration file.

Startup-command method

Valve provides this reference command for launching a community dedicated server:

Code: Select all

cs2 -dedicated +map de_dust2
To enable logging from the command line, add +sv_logfile 1 -serverlogging:

Code: Select all

cs2 -dedicated +map de_dust2 +sv_logfile 1 -serverlogging
Configuration-file method

Alternatively, add both of these commands to a server configuration file:

Code: Select all

sv_logfile 1
log on
HTTP log forwarding

After enabling logging, configure an HTTP log destination with:

Code: Select all

logaddress_add_http "<server address>:<port>"
Replace the placeholders with the address and port of the log receiver.

For related community material, check sourced Counter-Strike coverage on TOP OF GAMES.