Official Soldat Forums

Soldat Fans => Fan Apps => Topic started by: jrgp on December 19, 2016, 09:58:32 pm

Title: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: jrgp on December 19, 2016, 09:58:32 pm
I wrote another web kill log parser statistics app, this time written in Python and using redis as the backend store rather than mysql. It can be considered as another alternative to zitrostats.

Its source as well as instructions can be found on github: https://github.com/jrgp/soldat-pystats

Live demo, where you can see stats on my EU soldat servers: http://stats.jrgp.us/dm
Example player stats: http://stats.jrgp.us/dm/player/Buktore

Also aggregated stats for all of dardar's gather servers in the EU region: http://stats.jrgp.us/dardar

Features:

 - Get logs from either local files, or ssh+sftp, or FTP on a remote game host
 - ip2country for all players. Country stats + flags next to each player
 - Supports multiple Soldat servers, click through them using the UI
 - Configurable data retention. Don't show kill stats more than X days old.
 - Ability to connect to Soldat server's admin port and provide current status
 - Player search
 - Pretty graphs
 - Clean comfortable layout provided by Bootswatch
 - Uses Redis key value database instead of SQL so pages are fast even with hundreds of thousands of recorded kills.
Title: Re: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: machina on December 20, 2016, 09:14:06 am
Cool! Nice technologies involved, too.

@helloer Add it to Zabijaka :D
Title: Re: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: Savage on December 20, 2016, 07:51:25 pm
Damn, looks like good stuff.
Title: Re: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: CCalp on December 23, 2016, 02:54:57 pm
That is pretty good stuff! Very well done. Browsing it a little, I noticed that trying to open a player's statistic with a nick name starting with "/" gives a 404 error. (e.g. "/MB/ Tanaka" from the gather stats). Just if you didn't notice that before.
Title: Re: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: jrgp on December 23, 2016, 06:54:15 pm
I'm glad you guys like it.

That is pretty good stuff! Very well done. Browsing it a little, I noticed that trying to open a player's statistic with a nick name starting with "/" gives a 404 error. (e.g. "/MB/ Tanaka" from the gather stats). Just if you didn't notice that before.

That will be a quick fix and I'll fix it soon. Any other feedback would also be appreciated :)
Title: Re: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: Leo on October 20, 2018, 10:15:12 am
http://199.192.23.194:5000  ;D
Title: Re: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: jrgp on October 30, 2018, 09:27:23 am
http://lgsnow.com/  ;D

Cool!
Title: Re: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: Leo on October 30, 2018, 04:16:08 pm
Status page changed to http://lgs.community:5000
Title: Re: Soldat Pystats - (Python/Redis Log File Analyzer)
Post by: jrgp on November 05, 2018, 03:01:42 pm
Just implemented support for displaying a map's wireframe on the map profile page: Example 1 (http://stats.jrgp.us/dardar/map/ctf_Nuubia), Example 2 (http://stats.jrgp.us/jrgpeudm/map/Goblin)

Works by first parsing the map's PMS file, using my Python PMS parser (https://github.com/jrgp/soldat-pystats/tree/master/piestats/update/pms_parser), and then generating a SVG of it.