Custom url wise log for nginx

I want to configure netdata to aggregate logs and display URL wise data for api latency
api count and request body / response body.

I couldn’t find a way to do it.
My nginx log format is :

log_format ltsv "time:$time_local"
                "\thost:$remote_addr"
                "\tforwardedfor:$http_x_forwarded_for"
                "\turi:$request_uri"
                "\tstatus:$status"
                "\tsize:$body_bytes_sent"
                "\treferer:$http_referer"
                "\tua:$http_user_agent"
                "\treqtime:$request_time"
                "\tcache:$upstream_http_x_cache"
                "\truntime:$upstream_http_x_runtime"
                "\tvhost:$host";

    access_log /var/log/nginx/ltsv.log ltsv;

My netdata web_log.conf is

  # LTSV Log
  - name: ltsv logger
    path: /var/log/nginx/ltsv.log
    log_type: ltsv
    ltsv_config:
        mapping:
            uri: uri

I cannot get this to work.

Any help appriciated.

Hey, @Saumil_Shah. See Known Fields, you need to map your keys to known fields, so it should be

        mapping:
            uri: request_uri

Also, if there is something doesn’t work consider using Debug mode. In the debug mode plugins print a lot of information that help identify problems.

If you still can’t make it work share a few nging log lines and the debug output.