Re: how to see what users are searching
- From: "Don Grover" <dgrover@xxxxxxxxxxxxx>
- Date: Tue, 6 Mar 2007 08:36:03 +1100
I just write to a text file re below asp sub:
strLogFileName = CStr("Remote Access." & Year(Date) & ".log")
'enter your preferred file name here
'Make a entry in the log
WriteToLog Request.ServerVariables("REMOTE_ADDR") & " " & "Search log files
Catalog: " & sCatalog & " Searching For: " & sSearchString
<%
'Specific Write to Logfile & close , cleanup Sub
Sub WriteToLog(strNewEntry)
Dim objLogFileFSO, objLogFileTS, strLogEntry
Set objLogFileFSO = CreateObject("Scripting.FileSystemObject")
If objLogFileFSO.FileExists(strLogFilepath & strLogFileName) Then
Set objLogFileTS = objLogFileFSO.OpenTextFile(strLogFilepath &
strLogFileName, ForAppending)
Else
Set objLogFileTS = objLogFileFSO.CreateTextFile(strLogFilepath &
strLogFileName)
End If
strLogEntry = Request.ServerVariables("SERVER_NAME") & " - " &
Request.ServerVariables("HTTP_X_FORWARDED_FOR") & " - " &
FormatDateTime(Now) & " - "
strLogEntry = strLogEntry & strNewEntry
objLogFileTS.WriteLine strLogEntry
objLogFileTS.Close
Set objLogFileTS = Nothing
Set objLogFileFSO = Nothing
End Sub
%>
<robix73@xxxxxxxxx> wrote in message
news:1173114586.194544.239630@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello to all
in my web server as you know i run iis; the log file is in the w3c
format.
I'd like to see what people search.
in these log files, i can see what document they open as a result of
query but I cannot see what the type in the search box;
i can read that they post all the time my idq file and after they get
a document, but i cannot what they typed in the search box
(userresctiction)
Is there any way to log the search query?
tnx in advance
all the time
Roberto Gerlando
.
- Follow-Ups:
- Re: how to see what users are searching
- From: robix73
- Re: how to see what users are searching
- References:
- how to see what users are searching
- From: robix73
- how to see what users are searching
- Prev by Date: how to see what users are searching
- Next by Date: Re: how to see what users are searching
- Previous by thread: how to see what users are searching
- Next by thread: Re: how to see what users are searching
- Index(es):
Relevant Pages
|
Loading