LogoLogo
  • Home
  • Getting Started
  • Configuration
    • LinuxGSM Config
    • Game Server Config
    • Start Parameters
    • cronjobs
    • Running on Boot
    • Running Multiple Game Servers
    • IP Address Configuration
    • LinuxGSM Stats
  • Commands
    • install
    • start-stop-restart
    • monitor
    • test-alert
    • console
    • debug
    • update
    • check-update
    • force-update
    • validate
    • update-lgsm
    • backup
    • map-compressor
    • details
    • mods
    • skeleton
    • fastdl
    • change-password
  • Game Servers
    • 7 Days to Die
    • Arma 3
    • ARK: Survival Evolved
    • Call of Duty 4
    • Dont Starve Together
    • Counter-Strike 2
    • Counter-Strike: Global Offensive
    • Factorio
    • Garry's Mod
    • Insurgency: SandStorm
    • Killing Floor 2
    • Minecraft: Java Edition
    • Multi Theft Auto
    • Rust
    • Sven Co-op
    • Trackmania Nations Forever / Trackmania United Forever
    • TeamSpeak 3
    • Unreal Tournament 99
    • Unreal Tournament 2004
    • Unreal Tournament 3
    • Valheim
    • Xonotic
    • The Front [WIP]
  • Networking
    • IP Address
    • Ports
    • Source Engine
  • Alerts
    • Discord
    • Email
    • IFTTT
    • Pushbullet
    • Pushover
    • Rocket.Chat
    • Slack
    • Telegram
  • Dependencies
    • Java
    • tmux
    • jq
    • gamedig
    • glibc
  • Features
    • ANSI Colors
    • Stop Mode
    • Log Management
    • Message Display Time
  • SteamCMD
    • Steam Master Server
    • Game Server Login Token
    • Branch
    • LAN Discovery
    • Workshop
    • Error Codes
  • Linux
    • distro
    • ftp-scp
    • file-ownership
    • firewalls
    • network-interfaces
    • permissions
    • Symlinking and ln command
  • Troubleshooting
  • FAQ
  • Guides
    • Security
    • Make Webserver Case Insensitive
    • Sourcemod and Metamod:Source
  • Other
    • server-migration
    • basic-usage
    • brand
Powered by GitBook
On this page
  • Log clearing
  • Gamelogs management
Edit on GitHub
Export as PDF
  1. Features

Log Management

Logs are an important part of monitoring a server as it allows you to know what has been happening. LinuxGSM has a log directory that allows you to track the gameserver, console and LinuxGSM itself.

If your user is gameserver, then LinuxGSM logs are located in the following directory:

/home/gameserver/log

This "log" directory contains two other directories:

  • script, logs LinuxGSM script activity

  • console, logs gameserver [console](../commands/console.md) output

  • game, is a redirect to the game server log files if available.

    Settings

You can alter these settings to change LinuxGSM behavior:

logdays="7" # How long logs are kept
consolelogging="on" # Turning this to off will disable console logging

Note: logdays="0" means logs will be removed if older than 24h.

Log clearing

LinuxGSM clears outdated logs according to logdays variable setting. This will affect script and console logs, as well as common game logs.

Gamelogs management

LinuxGSM also clears logs from common locations to prevent them from using gigabytes of disk space, including:

  • ${systemdir}/logs

  • ${systemdir}/*/logs

  • ${systemdir}/addons/sourcemod/logs

  • ${systemdir}/data/darkrp_logs

  • ${systemdir}/data/ulx_logs

Note: ${systemdir} designates the location of your game server installation

PreviousStop ModeNextMessage Display Time

Last updated 4 years ago