teler-sh/teler

[BUG] Issue with nginx log format

jtorvald opened this issue · 1 comments

Describe the bug

I've trouble getting the below logformat to work. Am I missing something? What

    log_format  main_timed  '$remote_addr - $remote_user [$time_local] "$request" '
                            '$status $body_bytes_sent "$http_referer" '
                            '"$http_user_agent" "$http_x_forwarded_for" '
                            '$request_time $upstream_response_time $pipe $upstream_cache_status';

Example row:

2.55.123.55 - - [03/Nov/2021:14:12:54 +0100] "GET /api/v1/settings HTTP/1.1" 200 208 "-" "iOS" "-" 0.605 0.605 . -

config:

log_format: |
  $remote_addr - $remote_user - [$time_local]
  "$request_method $request_uri $request_protocol" $status $body_bytes_sent
  "$http_referer" "$http_user_agent" "$http_x_forwarded_for" $request_time $upstream_response_time $pipe $upstream_cache_status

Output

[INF] Analyzing...
[WRN] No logs analyzed, did you write log format correctly?
[INF] Done!

Environment (please complete the following information):

  • OS: Mac
  • teler Version 1.2.2