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=188.8.131.52 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:
- Open the Windows Services control panel (Start > Control Panel > Administrative Tools > Services) and stop the Websense Log Server service.
- From theÂ Start menu, open a command prompt.
- Navigate to theÂ \Websense\bin folder in the Websense installation directory.
- TypeÂ testlogserver, and then pressÂ Enter.
- Browse some Web sites.
Data populates the command prompt window as outgoing requests are received.
- To stop the TestLogServer process, pressÂ Ctrl+C.
- 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.
- To show the log trace from a single client machine, typeÂ testlogserver -onlyipÂ <IP address> on the command line, and then pressEnter.
- PressÂ Ctrl+C, and then restart the Websense Log Server service to resume logging to the database.
|NOTE||While Websense Log Server is stopped, all log data goes to the TestLogServer and will not be available for reporting later.|