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.