<% local data, viewlibrary, page_info, session = ... %> <% if data.value.focus.value ~= "" then %> <% end %>

Search Parameters

" method="POST">
Start Time
<%= html.html_escape(data.value.starttime.value) %>
User ID
<%= html.html_escape(data.value.clientuserid.value) %>
Client IP
<%= html.html_escape(data.value.clientip.value) %>
End Time
<%= html.html_escape(data.value.endtime.value) %>
<% local clientinfo = "" if data.value.clientuserid.value ~= "" then clientinfo = clientinfo .. "clientuserid="..data.value.clientuserid.value.."&" end if data.value.clientip.value ~= "" then clientinfo = clientinfo .. "clientip="..data.value.clientip.value.."&" end %>

<%= html.html_escape(data.label) %>

<% for i,watch in ipairs(data.value.log.value) do %> <% local time = {} time.year, time.month, time.day, time.hour, time.min, time.sec = string.match(watch.logdatetime, "(%d+)%-(%d+)-(%d+)%s+(%d+):(%d+):(%d+)") time = os.time(time) %> <% if data.value.focus and data.value.focus.value == watch.logdatetime then %> <% else %> <% end %> <% if watch.reason and watch.reason ~= "" then %> <% end %> <% end %>
Timestamp Client IP User ID Size
<%= html.link{value = "viewweblog?"..clientinfo.. "starttime="..os.date("%Y-%m-%d %H:%M:%S", time - 60*(tonumber(data.value.window.value))).. "&endtime="..os.date("%Y-%m-%d %H:%M:%S", time + 60*(tonumber(data.value.window.value))).. "&focus="..watch.logdatetime, label=watch.logdatetime} %> <%= html.html_escape(watch.clientip) %> <%= html.html_escape(watch.clientuserid) %> <%= html.html_escape(watch.bytes) %>
colspan=4><%= html.link{value = watch.uri, label=watch.uri} %>
<%= html.html_escape(watch.reason) %>
<% if data.errtxt then %>

<%= html.html_escape(data.errtxt) %>

<% end %> <% if #data.value.log.value == 0 then %>

No results, try adjusting search parameters

<% end %> <% if page_info.action == "viewweblog" then %>
" method="POST">
Download log
<% end %>