Altitude Game: Forums  

Go Back   Altitude Game: Forums > Altitude Support > Dedicated Server

Dedicated Server Discuss technical issues related to hosting your own servers.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-08-2015, 10:23 PM
MagneticDuck` MagneticDuck` is offline
Member
 
Join Date: Oct 2014
Location: Coimbra, Portugal
Posts: 80
Default altitude-printer: pretty-printing of altitude server logs

Occasionally I find it useful to dig through the logs from a server to figure out what happened when I was away. Unfortunately this (raw server logs) is quite difficult to read even with the help of grep and less, so I wrote a small utility program this afternoon to convert it into a more human-readable format. Just leaving this here in the chance anybody could find it useful in the future.

It presents the following information in a neatly formatted output:

* Join and quit logs with quit reasons and vapor IDs
* Chat with nicknames
* Timestamps on all events (in delta time since server started)
* Map switches
* Explicit notification of time-gaps between meaningful events larger than 30 minutes.

For bonus points, "watch -t -n 1 'cat log.txt | altitude-printer | tail -n 50'"

I should stop wasting time and get back to solemnsky now...

EDIT: woke up this morning realizing I made ~20 player IP addresses public, the offending data (raw server logs) is now removed from all git references.

Last edited by MagneticDuck`; 11-09-2015 at 08:24 AM.
Reply With Quote
  #2  
Old 11-10-2015, 12:56 AM
Aki1024 Aki1024 is offline
Senior Member
 
Join Date: Jul 2011
Location: Across from you at a chess table. Your play is?
Posts: 1,080
Default

This can view a server's chat log by which server the speakers were in: Altitude Chat Parser

Like yours, this one is also open source.
Reply With Quote
  #3  
Old 11-10-2015, 08:06 AM
MagneticDuck` MagneticDuck` is offline
Member
 
Join Date: Oct 2014
Location: Coimbra, Portugal
Posts: 80
Default

It's worth noting, to avoid confusion on the part of third parties, that these two tools have very different functions: mine parses server-side logs (servers/log.txt on the server) and Aki's parses client-side logs (.local/share/Steam/steamapps/common/Altitude/config/chat_log.txt). Thanks for the link Aki.

EDIT: I was wrong, Aki's utility also deals with server logs.

Last edited by MagneticDuck`; 11-10-2015 at 06:18 PM.
Reply With Quote
  #4  
Old 11-10-2015, 04:47 PM
Aki1024 Aki1024 is offline
Senior Member
 
Join Date: Jul 2011
Location: Across from you at a chess table. Your play is?
Posts: 1,080
Default

Quote:
Originally Posted by MagneticDuck` View Post
It's worth noting, to avoid confusion on the part of third parties, that these two tools have very different functions: mine parses server-side logs (servers/log.txt on the server) and Aki's parses client-side logs (.local/share/Steam/steamapps/common/Altitude/config/chat_log.txt). Thanks for the link Aki.
The latest version parses either client or server logs. 1.0 was client only, but I later added the ability for the JSON server logs to be read. ^.^ I think I like your format more, and yours goes straight to file, which is a better long term solution. It doesn't appear that either of us handle if the user was talking in team chat ("team":true,"type":"chat"), or what team they were on ("player":0,"team":2,"type":"teamChange").

Here's a server log with the IPs as LAN only, so they are safe to be public, but it only has one player in server: http://pastebin.com/raw.php?i=EdNuEZVP

Last edited by Aki1024; 11-10-2015 at 05:04 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DONE - Server maintenance: November 19th, upgrading server hardware Karl News 6 11-21-2013 09:11 PM
Fourth team in logs Carlos98 Tech Support 2 10-01-2013 05:39 AM
Server Logs Lack Team vs All chat Aki1024 Tech Support 4 05-25-2012 06:32 AM
How do i post a server message in my server without joining the server? Knight Dedicated Server 22 09-27-2010 10:02 PM


All times are GMT. The time now is 12:06 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2008 Nimbly Games LLC