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

0 Members and 1 Guest are viewing this topic.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5036
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.
There are other worlds than these

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1117
  • 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: 155
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: 238
  • 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: 5036
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 :)
There are other worlds than these

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
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: 5036
There are other worlds than these

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Soldat Pystats - (Python/Redis Log File Analyzer)
« Reply #7 on: October 30, 2018, 04:16:08 pm »
Status page changed to http://lgs.community:5000
« Last Edit: December 05, 2018, 02:55:40 pm by Leo »

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5036
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 »
There are other worlds than these