Skip to content

Convert Nginx log_format to goaccess config file

Notifications You must be signed in to change notification settings

Omeryl/nginx2goaccess

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

nginx2goaccess

Convert Nginx log_format to goaccess config.

Usage

Command:

Usage: ./nginx2goaccess.sh '<log_format>'

./nginx2goaccess.sh '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'

Result:

  • Can be used with -p and read from a config file or placed into ~/.goaccessrc
- Generated goaccess config:

time-format %T
date-format %d/%b/%Y
log_format %h - %^ [%d:%t %^] "%r" %s %b "%R" "%u"

About

Convert Nginx log_format to goaccess config file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%