Forum

Results 1 to 6 of 6
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    2,355

    Problem with telnet command logview

    I tried one of the following commands on telnet:
    logview limitcount=2 comparator=< timestamp=2010-02-11\s11:12:17
    logview limitcount=2 comparator== timestamp=2010-02-11\s11:12:17
    But the server answer was:
    error id=1281 msg=database\sempty\sresult\sset
    If I try:
    logview limitcount=2 comparator=> timestamp=2010-02-11\s11:12:17
    I get the first line of the log (date 2009-12-19). It does not matter which timestamp I try.

    What did I wrong? My timestamp maybe? Server beta 18 (Debian 5).

  2. #2
    Join Date
    January 2010
    Location
    Germany
    Posts
    2,029
    try using real Timestamps instead of written Dates. That should work.
    Code:
    logview limitcount=5 comparator=> timestamp=1265828400
    would show the next 5 Logentries from 2010-02-10 20:00:00 UTC

  3. #3
    Join Date
    December 2009
    Location
    Germany
    Posts
    2,355
    Quote Originally Posted by SilentStorm View Post
    try using real Timestamps instead of written Dates. That should work.
    The help text says:
    logview limitcount={1-500} [comparator={<|>|=}] [timestamp=YYYY-MM-DD\shh:mm:ss]
    Thats why I got problems here.

  4. #4
    Join Date
    January 2010
    Location
    Germany
    Posts
    2,029
    I know what the help text says.
    But still timestamp is timestamp and a timestamp is a numeric Value not a string. Apparently they tried to make it more userfriendly by allowing a time expression to be passed but obviously they either forgot to convert it into an actual timestamp or it's not working properly.
    Try it out with passing a timestamp you will find it works. In case you don't know how to get the timestamp for a given date try PHP's strtotime Function.

  5. #5
    Join Date
    December 2009
    Location
    Germany
    Posts
    2,355
    Quote Originally Posted by SilentStorm View Post
    Try it out with passing a timestamp you will find it works.
    I know, already tried after your first answer. Thanks for the information.

    My last post should only say that the help text is wrong, a small notice for the teamspeak devs :P .

  6. #6
    Join Date
    January 2010
    Location
    Germany
    Posts
    2,029
    Quote Originally Posted by Stefan1200 View Post
    I know, already tried after your first answer. Thanks for the information.

    My last post should only say that the help text is wrong, a small notice for the teamspeak devs :P .
    ah ok must have misunderstood you then. Sorry

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. logview problem
    By elraro in forum Linux / FreeBSD
    Replies: 0
    Last Post: June 12th, 2014, 06:15 PM
  2. [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
  3. Telnet command suggestions
    By Stefan1200 in forum Suggestions and Feedback
    Replies: 0
    Last Post: February 19th, 2010, 11:53 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
  •