Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 9 of 9
  1. #1
    Join Date
    February 2014
    Location
    Portugal
    Posts
    18

    [RELEASE] TS3logAnalyser - Analyse your teamspeak server logs

    Greetings,
    I'm (re)-announcing ts3logAnalyser!
    It allows you to analyze your TeamSpeak server logs and generate relevant statistics with it:

    • Who has the most cumulative connection time on the server / Time spent by each user on server
    • Longest connection time for each user
    • First and last seen
    • Most used nicknames
    • Total number of connections
    • No bot required, only ts3 logfiles.
    • And much more!


    A full description of ts3logAnalyser can be found on github.

    Here's the stats page from my server with data generated with this tool:
    Click image for larger version. 

Name:	c6c4689ed2f69cf98cf295619b0235f2.png 
Views:	335 
Size:	45.6 KB 
ID:	15475
    It works quite well in my tests: Scanned logs from 2014-02-22 until today (2017-05-01).

    If you found this useful leave your opinion

    Original post from 2015 @ pastebin: eNgLFGMS
    Hey,

    I'm developing a Java program to analyse TeamSpeak server logs.
    I have seen some people requesting this and I was really interested in seeing how many time I have spent on my server.

    What it does:
    • Reads multiple log files or an entire folder loaded with them;
    • Stores info about all clients, such as:
      • Most used nickname;
      • cumulative connection time;
      • maximum connection time;
      • number of connections;
      • number of time outs;
    • Outputs a file to easily Analyse in Excel;


    How:
    Just run TS3logAnalyser.jar with java and start using it.
    I have included a run.bat for windows users.
    The output file data is separated by tabs, just save it as .txt and open with excel for analysing the data;

    Example output (Google spreadsheets): here


    This is NOT a finished project, expect bugs
    Known bugs:
    • During the daylight savings hour (yes, exactly when the hour changes) connections get a null time;
    • Sometimes maximum connection time may bug, I'm working on that (check the Example output and you will see the 3 top maximums)
    • Some usernames/channel names may interfere the indexing, check PLEASE REPORT them;


    To-do:
    • Add the number of:
      • bans;
      • kicks;
      • permissions assigned;
      • channels created;
    • Option to enable debugging.


    -Removed-

    Source available on GitHub
    Last edited by ToFran; May 2nd, 2017 at 11:53 PM. Reason: Released version 2.0

  2. #2
    Join Date
    November 2014
    Location
    Germany
    Posts
    12
    Nice program keep on working :-)

  3. #3
    Join Date
    February 2014
    Location
    Portugal
    Posts
    18
    @madtec

    Thank you, that means a lot to me

  4. #4
    Join Date
    February 2014
    Location
    Portugal
    Posts
    18
    Updated
    1.22-beta

    ChangeLog:
    Improved User Interface;
    No double slashing now;
    Added a Readme to download file;
    Proper versioning;
    Updated post screenshots.


    *and a shameful English syntax error removed
    Last edited by ToFran; April 28th, 2015 at 12:08 AM.

  5. #5
    Join Date
    October 2013
    Posts
    8
    I keep receiving the following error:
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1955)
    at FileReader.getId(FileReader.java:110)
    at FileReader.getTime(FileReader.java:133)
    at FileReader.readFile(FileReader.java:101)
    at FileReader.execute(FileReader.java:48)
    at Main.readFile(Main.java:78)
    at Main.main(Main.java:36)
    This happens when it tries to read a log with invalid characters that are created, when I assume, the TS server had crashed.
    Click image for larger version. 

Name:	2015-05-02_17-48-48.png 
Views:	94 
Size:	24.0 KB 
ID:	12404
    Last edited by chickenputty; May 3rd, 2015 at 02:09 AM.

  6. #6
    Join Date
    February 2014
    Location
    Portugal
    Posts
    18
    @chickenputty

    thanks for the feedback,
    those characters are really weird, I never got those,
    I will try to fix that, in the meanwhile you can simply remove that line before analysing.

    EDIT:
    That happens because the program presumes that every line has basic info like the time.

    ToFran

  7. #7
    Join Date
    October 2013
    Posts
    8
    Quote Originally Posted by ToFran View Post
    @chickenputty

    thanks for the feedback,
    those characters are really weird, I never got those,
    I will try to fix that, in the meanwhile you can simply remove that line before analysing.

    EDIT:
    That happens because the program presumes that every line has basic info like the time.

    ToFran
    Understood.

    When saving the file I also receive this error:
    Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = 'k'
    at java.util.Formatter$FormatSpecifier.conversion(For matter.java:2691)
    at java.util.Formatter$FormatSpecifier.<init>(Formatt er.java:2720)
    at java.util.Formatter.parse(Formatter.java:2560)
    at java.util.Formatter.format(Formatter.java:2501)
    at java.util.Formatter.format(Formatter.java:2455)
    at FileWriter.saveToFile(FileWriter.java:43)
    at FileWriter.<init>(FileWriter.java:19)
    at Main.saveToFile(Main.java:93)
    at Main.main(Main.java:32)
    I am running this through bash on Ubuntu, if that helps.

  8. #8
    Join Date
    February 2014
    Location
    Portugal
    Posts
    18
    @chickenputty

    I found it: IllegalFormatException
    But that will not help, I can only catch the error.

    Does that crash with every log, or just one?
    Is there any "%" in you log?

    +To-do: add an option to the compiled version to enable debug mode.

    ToFran

  9. #9
    Join Date
    February 2014
    Location
    Portugal
    Posts
    18

    Wink

    Hello guys,
    After all I did not went missing forever
    I have re-built this program from scratch, more information in the original, now edited post.
    Regards

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Release] Chatlog Viewer - Read Logs offline
    By SilentStorm in forum Client Plugins / Lua Scripts
    Replies: 45
    Last Post: June 21st, 2019, 07:38 PM
  2. [Not possible] Server chat logs: channel and private logs
    By GiantGerman in forum Server Support
    Replies: 2
    Last Post: October 18th, 2013, 12:45 PM
  3. [suggestion] Teamspeak 3 server - logs(logrotate)
    By Tomas in forum Suggestions and Feedback
    Replies: 3
    Last Post: June 25th, 2012, 10:51 AM
  4. [Solved] How to turn off TeamSpeak 3 server logs?
    By Reeze in forum General Questions
    Replies: 2
    Last Post: August 4th, 2010, 03:22 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •