nsmcp::AccessLogIngestor method ingest (public)
<instance of nsmcp::AccessLogIngestor> ingest [ from ] \ [ allowHistory ]
Defined in /usr/local/ns/tcl/nsmcp/access-analytics.tcl
Ingest a bounded portion of the configured access logs. Validate the starting timestamp and serialize ingestion with the instance mutex; historical work is optional.
- Parameters:
- from (optional)
- Earliest epoch-second timestamp to ingest; empty uses the default recent window.
- allowHistory (optional, defaults to
"false")- Whether this pass may process historical sources. Defaults to 'false'.
- Returns:
- The ingestion result returned by the locked ingestion pass.
- Testcases:
- No testcase defined.
Source code: if {$from eq ""} { set from [expr {[clock seconds]-3600}] } if {![string is entier -strict $from] || $from < 0} { error "expected an epoch-second window start" } ns_mutex lock ${:mutex} try { return [:ingestLocked $from $allowHistory] } finally { ns_mutex unlock ${:mutex} }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)