user3904465
user3904465

Reputation: 51

goaccess nginx logformat issue

Just installed goaccess, and i want to parse nginx log, but can't understand how to make right log-format. In nginx.conf i have this format

'$server_addr $server_port $remote_addr $request_time $upstream_response_time $time_iso8601 $request  $status $body_bytes_sent';  

And a peace of log from file

192.168.2.35 8382 192.168.2.98 38.547 38.547 2016-01-14T13:30:22+02:00 POST /test/search?id=4587252-16 HTTP/1.1 200 4185  

In the goaccess conf file, i have this format

date_format %Y/%m/%d  
time-format %H:%M:%S  
log-format %h %^ %r %T %^ %^ %r %s %b  

but get an error

"Nothing valid to process. Verify your date/time/log format"

Upvotes: 1

Views: 595

Answers (1)

Kayla
Kayla

Reputation: 919

You may try this format:

log-format %^ %^ %h %T %^ %dT%t+%^ %m %U %H %s %b
date-format %Y-%m-%d
time-format %H:%M:%S

Upvotes: 1

Related Questions