How to Use TestLogServer with Websense Express

TestLogServer is a command-line utility that displays log traffic sent to Websense Log Server. TestLogServer listens on port 55805, which is the same port used by Websense Log Server.

Here is an example of traffic displyed by the TestLogServer:

   time=Fri Jul 30 09:15:41 2004 version=3
   server=10.1.1.1 source=127.0.0.1 dest=199.181.132.250
   protocol= "http"
   url= "http://espn.com/"
   port= "80"
   category= 18 (SPORTS)
   disposition= 1026 (CATEGORY NOT BLOCKED)
   app type= ""
   keyword= ""
   user= ""
   bytes sent=331 bytes received=146 duration=0

Testlogserver is one of several diagnostic utilities included as part of your Websense Express installation, and can be used to diagnose issues such as incorrect authentication and categorization. Use the link in the Related Articles section to view a TestLogServer demo that provides additional information.

To run TestLogServer:

  1. Open the Windows Services control panel (Start > Control Panel > Administrative Tools > Services) and stop the Websense Log Server service.
  2. From the Start menu, open a command prompt.
  3. Navigate to the \Websense\bin folder in the Websense installation directory.
  4. Type testlogserver, and then press Enter.
  5. Browse some Web sites.
    Data populates the command prompt window as outgoing requests are received.
  6. To stop the TestLogServer process, press Ctrl+C.
  7. To log the data to a text file, type testlogserver -file logfile.txt on the command line, and then press Enter.
    Logging data is written to a file called logfile.txt and placed in the \Websense\bin folder. Data is still displayed in the command prompt window while data is being copied to the text file.
  8. To show the log trace from a single client machine, type testlogserver -onlyip <IP address> on the command line, and then pressEnter.
  9. Press Ctrl+C, and then restart the Websense Log Server service to resume logging to the database.
NOTEWhile Websense Log Server is stopped, all log data goes to the TestLogServer and will not be available for reporting later.


One Response to “How to Use TestLogServer with Websense Express”

  • Do you mind if I quote a few of your posts as long as I
    provide credit and sources back to your blog?
    My website is in the very same area of interest
    as yours and my visitors would genuinely benefit from some of the information you present here.
    Please let me know if this okay with you. Regards!


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>