Skip to content

Commit c31a1f8

Browse files
committed
Update fields
1 parent 78515f0 commit c31a1f8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lua_resty_netacea.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ function _N:ingest()
645645
TimeLocal = vars.time_local,
646646
TimeUnixMsUTC = vars.msec * 1000,
647647
RealIp = self:getIpAddress(vars),
648-
UserAgent = "MG HARDCODED TEST USER AGENT", -- vars.http_user_agent or "-",
648+
UserAgent = vars.http_user_agent or "-",
649649
Status = vars.status,
650650
RequestTime = vars.request_time,
651651
BytesSent = vars.bytes_sent,
@@ -654,13 +654,12 @@ function _N:ingest()
654654
NetaceaMitigationApplied = ngx.ctx.bc_type,
655655
IntegrationType = self._MODULE_TYPE,
656656
IntegrationVersion = self._MODULE_VERSION,
657-
-- TO TEST
658657
Query = vars.query_string or "",
659-
BytesReceived = vars.bytes_received or 0, -- Doesn't seem to work
660658
RequestHost = vars.host or "-",
661659
RequestId = vars.request_id or "-",
660+
ProtectionMode = self.mitigationType or "ERROR",
662661
-- TODO
663-
ProtectionMode = "INGEST",
662+
BytesReceived = vars.bytes_received or 0, -- Doesn't seem to work
664663
NetaceaUserIdCookieStatus = 1,
665664
Optional = {}
666665
}

0 commit comments

Comments
 (0)