diff --git a/src/FilebeatLogging/RequestProcessor.php b/src/FilebeatLogging/RequestProcessor.php index ffcf515..aae1b16 100644 --- a/src/FilebeatLogging/RequestProcessor.php +++ b/src/FilebeatLogging/RequestProcessor.php @@ -38,7 +38,7 @@ public function __invoke(LogRecord $record): LogRecord private static function clientExtras(Request $request): array { return [ - 'ip' => $request->header('CF-Connecting-IP') ?? $request->getClientIp(), + 'ip' => $request->getClientIp(), 'address' => $request->header('X-Forwarded-For'), 'geo' => [ 'country_iso_code' => $request->header('CF-IPCountry'),