From 56684dec5abf1cb24deaeef47c2f3d4c9dffeeca Mon Sep 17 00:00:00 2001 From: yaron-idan Date: Wed, 28 Mar 2018 09:20:30 +0300 Subject: [PATCH 1/3] added http-x-forwarded-for field to nginx parser --- lib/fluent/plugin/parser_nginx.rb | 2 +- test/plugin/test_parser_nginx.rb | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/fluent/plugin/parser_nginx.rb b/lib/fluent/plugin/parser_nginx.rb index 8cad4ed322..9ed97b9e7f 100644 --- a/lib/fluent/plugin/parser_nginx.rb +++ b/lib/fluent/plugin/parser_nginx.rb @@ -21,7 +21,7 @@ module Plugin class NginxParser < RegexpParser Plugin.register_parser("nginx", self) - config_set_default :expression, %q{/^(?[^ ]*) (?[^ ]*) (?[^ ]*) \[(?