nsmcp::AccessRecordParser method parse (public)

 <instance of nsmcp::AccessRecordParser[i]> parse line

Defined in /usr/local/ns/tcl/nsmcp/access-record.tcl

Parameters:
line (required)

Testcases:
No testcase defined.
Source code:
if {[string first \x00 $line]>=0} {return {}}
if {![regexp {^(\S+)\s+(\S+)\s+("(?:[^"\\]|\\.)*"|\S+)\s+(\[[^\]\r\n]+\]|[0-9]+)\s+"((?:[^"\\\r\n]|\\.)*)"\s+([1-5][0-9]{2})\s+(-|[0-9]+)(.*)$} $line -> peer identifier user stamp request status bytes tail]} {return {}}
return [:fields $peer $identifier $user $stamp $request $status $bytes $tail]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: