nsmcp::AccessLogIngestor method init (protected)

 <instance of nsmcp::AccessLogIngestor[i]> init

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

Testcases:
No testcase defined.
Source code:
foreach value [list ${:maxReadBytes} ${:maxLineBytes} ${:retentionSeconds} ${:maxSeconds}] {
    if {$value<1} {
        error "positive analytics limits required"
    }
}
if {${:retentionSeconds}<60} {
    error "retentionSeconds must be at least 60"
}
if {${:maxReadBytes}<=${:maxLineBytes}} {
    error "maxReadBytes must exceed maxLineBytes"
}
set :path [file normalize ${:path}]
if {${:mutex} eq ""} {
    set :mutex [ns_mutex create "nsmcp:access-log:[ns_info server]:[self]"]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: