Community Forums Today's Posts     Member List     Archive    
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    17

    Arrow [SUGGESTION] log-refresh-command

    The logs from my server fill up very quickly and unfortunately you can restart the logs only by restarting the instance or a virtual server.

    My Idea is to insert a query-command like "logrefresh sid=1" or somethin' like that to create new logfiles.
    Maybe with an autoclear-function after a given time

    Gr33tz from Germany

    X-Ray

  2. #2
    Join Date
    Feb 2012
    Posts
    7

    Thumbs up

    Great idea...
    Maybe i could create every month a new one.
    The logname can called ts3server_0_monthname for an example...
    And it can be equal with the "executing monthly interval" and "reset virtualserver traffic statistics"

  3. #3
    Join Date
    Jun 2002
    Location
    Krün / Germany
    Posts
    1,965
    Quote Originally Posted by X-Ray View Post
    The logs from my server fill up very quickly and unfortunately you can restart the logs only by restarting the instance or a virtual server.

    My Idea is to insert a query-command like "logrefresh sid=1" or somethin' like that to create new logfiles.
    Maybe with an autoclear-function after a given time

    Gr33tz from Germany

    X-Ray
    so what is the problem with that "big log" files ? hd space ?

  4. #4
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,039
    • Easier to search through smaller files
    • Easier to find stuff if you happen to know when something must've happened.
    • Easier to manage
    • Easier to get rid of old logs you most likely will not need any more (if HD Space becomes an Issue or you just don't want log files cluttering your disk)

  5. #5
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    17
    not just only the hd space. also if i search, i have to download the full file and can't search in smaller files.
    I'm agree width SilentStorm

  6. #6
    Join Date
    Jul 2010
    Location
    Madrid
    Posts
    110
    +1 ... we need a log rotate ...

  7. #7
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    17
    Quote Originally Posted by Nicocaps View Post
    +1 ... we need a log rotate ...
    Hope TeamSpeak Dev agree them ;D

  8. #8
    Join Date
    Mar 2010
    Location
    Germany
    Posts
    181
    +1 It is really neccessary. Or at least teamspeak should create new log files if you delete them while the ts server is running. Then it would be possible to use logrotate daemon on linux

  9. #9
    Join Date
    Jun 2008
    Posts
    7,764
    The log settings can't be made for one virtual server only. Logrefresh won't be added, but
    I have created another suggestion and i i guess this will help here too.

    The feature should be a query command, to force the server isntance, to change the logging mode or to create a new logfile, when logapend is set to 0 (this is the default value)

    "instanceedit logapend=x
    " and 0 starts a new log file for all virtual server with the current date and 1 starts a new log file called "ts3server_0.log", "ts3server_1.log" and so on or it does use the old logfile instead, when tha tfile still exists.
    ---------------------------------------------------------
    Please don't send me private support questions.
    They belong into the forum and maybe other users have these questions/problems too.

    TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
    NPL License (Registration)

  10. #10
    Join Date
    Sep 2006
    Location
    Germany / Hannover
    Posts
    133
    Why can't the server itself start a new log dependent on the actual file size/date?

    So please, don't start new log file on user request - give us an optionflag (and a var to set the filesize ) to tell the server to start new logs (no matter of one server or the whole ts instance).

  11. #11
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,039
    It's fine if it is for the whole instance and not per VirtualServer... don't think that would make much sense anyway.

    Logs are not used by those using the Virtualserver anyway or at least they don't have access to the Logfiles themselves. All they can do (if even) is view the Serverlog from within the Client which requests the logs from the Server. The Server can be made to read from the previous logfile if the Client requests logs from before the current Logfile started, or it could just throw an Error if you don't feel like getting the previous logfile and read from that one.

    A Query Command to force the Server to create a new set of logfiles as you wrote above is a nice thing to have, but only as an addition to autorotate.

    What should really be done is to add additional parameters to the server: logrefresh=0 and logmaxsize=0 (examples). If both are set to 0 (which can be the default) autorotation is disabled and the server behaves as it does now. logrefresh would be the time in hours after which the server would start a new set of logfiles and logmaxsize would be the maximum Filesize (in Kilobytes) after which the Server would also create a new set of logfiles. Both Parameters should be checked on a whatever comes first basis, so if the Log reaches max size after 2 hours a new logfile would be created.
    I can see the logmaxsize one to be a problem if you just have one variable for the Filename of the log and just append the ServerId, but the size of the logfiles shouldn't be much of a problem anyway if the server rotates Logfiles every x hours.

  12. #12
    Join Date
    Jun 2008
    Posts
    7,764
    As said above a logrefresh command won't be added.
    Sorry but i won't touch my request.

    I don't think this should be done automatically (per filesize or per hours).
    ---------------------------------------------------------
    Please don't send me private support questions.
    They belong into the forum and maybe other users have these questions/problems too.

    TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
    NPL License (Registration)

  13. #13
    Join Date
    Sep 2006
    Location
    Germany / Hannover
    Posts
    133
    Have you ever searched a specific item in a large logfile when something goes wrong?

  14. #14
    Join Date
    Jun 2008
    Posts
    7,764
    Yes i did many times on our public server as an example.
    ---------------------------------------------------------
    Please don't send me private support questions.
    They belong into the forum and maybe other users have these questions/problems too.

    TeamSpeak FAQ || What should i report, when i open a client thread? || Report and upload your Crashdump here
    NPL License (Registration)

  15. #15
    Join Date
    Sep 2006
    Location
    Germany / Hannover
    Posts
    133
    Ah ok, it was just a question.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 03-06-2010, 17:23
  2. [Suggestion]Client IP query command
    By azzy101 in forum Suggestions and Feedback
    Replies: 1
    Last Post: 23-03-2010, 09:08
  3. [TS3 Suggestion] No operation serverquery command
    By Birdie in forum Suggestions and Feedback
    Replies: 4
    Last Post: 25-12-2009, 15:49
  4. Refresh Button
    By s1998m2002 in forum [TeamSpeak 2] General Questions
    Replies: 1
    Last Post: 20-10-2003, 09:03
  5. Serverlist refresh
    By Logon in forum [TeamSpeak 2] Client Support
    Replies: 0
    Last Post: 11-11-2002, 09:31

Posting Permissions

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