Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log-format or log_format? #2

Open
daBee opened this issue Apr 16, 2023 · 1 comment
Open

log-format or log_format? #2

daBee opened this issue Apr 16, 2023 · 1 comment

Comments

@daBee
Copy link

daBee commented Apr 16, 2023

Docs use log-format but output is log_format. Which should be used? Is this valid output? Here is my current output which isn't working:

time-format %T
date-format %d/%b/%Y
log_format nginx
log_format COMBINED
exclude-ip 192.168.1.1-192.168.1.255

Now I cannot find log_format nginx anywhere in the documents.

@wangquan86
Copy link

wangquan86 commented Jun 9, 2023

nginx log_format : v1{]$host{]$request{]-{]$time_local{]$status{]-{]$request_time{]$body_bytes_sent{]$bytes_sent{]$remote_addr{]$http_x_forwarded_for{]$http_referer{]-{]$http_user_agent{]-{]-{]$http_via{]-{]$upstream_addr{]$upstream_response_time{]$server_addr{]launcher

log example: v1{]my.host.com{]GET /url/goes/here/ HTTP/1.1{]-{]07/Jun/2023:07:57:59 +0800{]200{]-{]0.055{]8028{]8451{]192.168.1.1{]192.168.1.1{]-{]-{]okhttp/3.8.0{]-{]-{]-{]-{]192.168.1.1{]0.055{]192.168.1.1{]launc

How do I convert the above nginx log format to goaccess log format?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants