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 4 of 4
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    118

    Question Logview using the queryport--> How to retrieve all Log-Entries?

    Hello,

    for my TS3QueryLib.Net I implemented a method to retrieve log entries using the queryport.
    The problem I have is how to retrieve all the log entries? The query is limited to a max. of 100 Logentries per call.

    From the docs:

    Code:
    Displays a specified number of entries from the servers log. If instance is set to 1, the server will return lines 
    from the master logfile (ts3server_0.log) instead of the selected virtual server logfile. 
    Permissions: 
    b_serverinstance_log_view 
    b_virtualserver_log_view 
    Syntax: 
    logview [lines={1-100}] [reverse={1|0}] [instance={1|0}] [begin_pos={n}]
    I thought begin_pos is the option I can use. I thought it is the linenumber or lineindex to start at, but as I can see it.. it is the END-Index of the whole logfile. So everything is returned until this index. (but it is limited, too).

    So whats the way to go here?
    I think the parameter is buggy and is not doing what it should do.

    Thanks!
    SCO

  2. #2
    Join Date
    June 2008
    Posts
    18,513
    The paramters work as they should and yes the logview is limited to max. 100 entrys this can not be changed.

    When you send a normal "logview", then it will show the last 100 entrys (from old to newest) and it shows the last position (last_pos=) of entry 101. You can use this value from last_pos, to start reading the log from entry 101.

    As said above, you only can see a maximum of 100 entrys and now you use the paramter begin_pos= and the number from last_pos= to read from entry 101.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    May 2006
    Location
    California
    Posts
    27
    What is the file_size value? I can't find any information about it.

  4. #4
    Join Date
    June 2008
    Posts
    18,513
    This is the size from your log file.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [No Bug] LOGVIEW usage of [begin_pos=X]
    By FireEmerald in forum Bug Reports [EN/DE]
    Replies: 5
    Last Post: July 7th, 2014, 01:26 AM
  2. logview problem
    By elraro in forum Linux / FreeBSD
    Replies: 0
    Last Post: June 12th, 2014, 06:15 PM
  3. [Resolved] command logview - read log from all files - TS Query
    By Kledr in forum Server Support
    Replies: 3
    Last Post: January 7th, 2013, 02:53 PM
  4. Problem with telnet command logview
    By Stefan1200 in forum Linux / FreeBSD
    Replies: 5
    Last Post: February 14th, 2010, 04:24 AM

Posting Permissions

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