Author Topic: Soldat Pystats - (Python/Redis Log File Analyzer)  (Read 1958 times)

0 Members and 1 Guest are viewing this topic.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5007
Soldat Pystats - (Python/Redis Log File Analyzer)
« 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.
Careful with that axe, Eugene.

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1089
  • The world isn't nice. Why should I be...?
Re: Soldat Pystats - (Python/Redis Log File Analyzer)
« Reply #1 on: December 20, 2016, 09:14:06 am »
Cool! Nice technologies involved, too.

@helloer Add it to Zabijaka :D

Offline Savage

  • Soldier
  • **
  • Posts: 145
Re: Soldat Pystats - (Python/Redis Log File Analyzer)
« Reply #2 on: December 20, 2016, 07:51:25 pm »
Damn, looks like good stuff.

Offline CCalp

  • Global Moderator
  • Soldier
  • *****
  • Posts: 235
  • calp (SN)
Re: Soldat Pystats - (Python/Redis Log File Analyzer)
« Reply #3 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.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5007
Re: Soldat Pystats - (Python/Redis Log File Analyzer)
« Reply #4 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 :)
Careful with that axe, Eugene.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1008
Re: Soldat Pystats - (Python/Redis Log File Analyzer)
« Reply #5 on: October 20, 2018, 10:15:12 am »
« Last Edit: October 30, 2018, 04:15:43 pm by Leo »

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5007
Careful with that axe, Eugene.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1008
Re: Soldat Pystats - (Python/Redis Log File Analyzer)
« Reply #7 on: October 30, 2018, 04:16:08 pm »
Status page changed to http://199.192.23.194:5000

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5007
Re: Soldat Pystats - (Python/Redis Log File Analyzer)
« Reply #8 on: November 05, 2018, 03:01:42 pm »
Just implemented support for displaying a map's wireframe on the map profile page: Example 1, Example 2

Works by first parsing the map's PMS file, using my Python PMS parser, and then generating a SVG of it.
« Last Edit: November 05, 2018, 03:06:44 pm by jrgp »
Careful with that axe, Eugene.