web_log plugin does not read $request

Hi. I’ve added a custom field to nginx jon in web_log.conf to detect specific patterns from Nginx’s $request field. But It doesn’t work. Obviously $request field is the problem. Because when I change $request to $http_user_agent the chart appears in the dashboard.
What can I do?

Hi. $reguest is the full original request line ( $request_method $request_uri $server_protocol, see known fields).

If there is something not working - the debug mode is always a good first step to debug the problem.

1 Like