Results 1 to 15 of 16
Thread: [SUGGESTION] log-refresh-command
-
29-05-2012, 20:47 #1
-= TeamSpeak User =-
- Join Date
- Apr 2012
- Location
- Germany
- Posts
- 17
[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
-
30-05-2012, 14:33 #2
-= TeamSpeak User =-
- Join Date
- Feb 2012
- Posts
- 7
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"
-
02-06-2012, 05:02 #3
-= TeamSpeak Team =-
- Join Date
- Jun 2002
- Location
- Krün / Germany
- Posts
- 1,965
-
02-06-2012, 09:12 #4
-= TeamSpeak Fanatic =-
- 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)
-
03-06-2012, 19:19 #5
-= TeamSpeak User =-
- 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
-
03-06-2012, 22:11 #6
-= TeamSpeak Addict =-
- Join Date
- Jul 2010
- Location
- Madrid
- Posts
- 110
+1 ... we need a log rotate ...
-
04-06-2012, 20:13 #7
-= TeamSpeak User =-
- Join Date
- Apr 2012
- Location
- Germany
- Posts
- 17
-
06-06-2012, 09:42 #8
+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
-
19-07-2012, 09:39 #9
-= TeamSpeak Team =-
- 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)
-
19-07-2012, 11:23 #10
-= TeamSpeak Addict =-
- 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).
-
19-07-2012, 18:50 #11
-= TeamSpeak Fanatic =-
- 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.
-
20-07-2012, 08:03 #12
-= TeamSpeak Team =-
- 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)
-
20-07-2012, 11:28 #13
-= TeamSpeak Addict =-
- Join Date
- Sep 2006
- Location
- Germany / Hannover
- Posts
- 133
Have you ever searched a specific item in a large logfile when something goes wrong?
-
20-07-2012, 11:29 #14
-= TeamSpeak Team =-
- 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)
-
20-07-2012, 11:37 #15
-= TeamSpeak Addict =-
- 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
-
[suggestion] Server command to replace permissions with defaults for all groups
By shadow_lmd in forum Suggestions and FeedbackReplies: 0Last Post: 03-06-2010, 17:23 -
[Suggestion]Client IP query command
By azzy101 in forum Suggestions and FeedbackReplies: 1Last Post: 23-03-2010, 09:08 -
[TS3 Suggestion] No operation serverquery command
By Birdie in forum Suggestions and FeedbackReplies: 4Last Post: 25-12-2009, 15:49 -
Refresh Button
By s1998m2002 in forum [TeamSpeak 2] General QuestionsReplies: 1Last Post: 20-10-2003, 09:03 -
Serverlist refresh
By Logon in forum [TeamSpeak 2] Client SupportReplies: 0Last Post: 11-11-2002, 09:31


Reply With Quote
