• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Server Trying to extract some metrics out of logs.

krakah

Member
Sep 15, 2011
8
0
Hi I'm trying something fun and trying to extract some metrics/statistics out of the logs. I have some monitoring software that monitors the log files and looks for certain strings. For instance it looks for the string "Bringing world" which allows it to count the amount of times a round starts:

For instance so far since 6am (when my server automatically checks for updates and restarts) there have been 3 rounds played:

https://imgur.com/a/EGIrL

I'd like to monitor player joins but it seems there isnt any unique line when a player FIRST joins a server. The same lines in the log appear every time the player joins a lobby, whether it be the first time they joined or even after a match was played and they rejoin the lobby.

Some other interesting things to keep track of might be zed spawns/kills, overall kills, how many times each map was loaded, if Hans or Patty was the boss, etc...

I don't think the logs get that granular or detailed, at least not by default. Is there any additional logging options to turn these stuff on, or a deeper logging level like debug, etc...?

Thanks!
 
I know that many logging things are suppressed by default in the KFEngine ini:

Suppress=Dev
Suppress=DevAbsorbFuncs
Suppress=DevAnim
Suppress=DevAssetDataBase
Suppress=DevAudio
Suppress=DevAudioVerbose
Suppress=DevBind
Suppress=DevBsp
Suppress=DevCamera
Suppress=DevCollision
Suppress=DevCompile
Suppress=DevComponents
Suppress=DevConfig
Suppress=DevCooking
Suppress=DevCrossLevel
Suppress=DevDataStore
Suppress=DevDecals
Suppress=DevFaceFX
Suppress=DevGFxUI
Suppress=DevGFxUIWarning
Suppress=DevGarbage
Suppress=DevKill
Suppress=DevLevelTools
Suppress=DevLightmassSolver
Suppress=DevLoad
Suppress=DevMovie
Suppress=DevNavMesh
Suppress=DevNavMeshWarning
Suppress=DevNetTraffic
Suppress=DevNetTrafficDetail
Suppress=DevPath
Suppress=DevReplace
Suppress=DevSHA
Suppress=DevSave
Suppress=DevShaders
Suppress=DevShadersDetailed
Suppress=DevSound
Suppress=DevStats
Suppress=DevStreaming
Suppress=DevTick
Suppress=DevUI
Suppress=DevUIAnimation
Suppress=DevUIFocus
Suppress=DevUIStates
Suppress=DevUIStyles
Suppress=DevMCP
Suppress=DevHTTP
Suppress=DevHttpRequest
Suppress=DevBeacon
Suppress=DevBeaconGame
Suppress=DevOnlineGame
Suppress=DevMatchmaking
Suppress=DevMovieCapture
Suppress=GameStats
Suppress=Input
Suppress=Inventory
Suppress=Localization
Suppress=LocalizationWarning
Suppress=PlayerManagement
Suppress=PlayerMove
Suppress=DevPhysics
Suppress=DevMemory
Suppress=DevWwise
Suppress=DevOnlineSpam
Suppress=OpenGLSpam

removing the specific line allows the thing to be logged.
more logging can result in more server load and result in more lagging.
 
Upvote 0
Great info. I hope the DevKill item will get me a kills message.

ill have to check out what DevStats and DevGameStats will get me. Sounds interesting.

Im running this thing on a 3.6ghz Xeon. It shares a hypervisor with a Minecraft server and a few other services that rarely get used. What I should do is compare cpu usage before and after enabling the logging features. The monitoring software monitors that so I can get some good data there too.
 
Upvote 0