Skip to content

AlexanderMatveev/sentry-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sentry-nginx

Workflow Go Report Card

Push Sentry important events by following nginx log file.

Usage

go run github.com/AlexanderMatveev/sentry-nginx --help

Available options

  -dsn string
    	Sentry DSN. If not specified, get from SENTRY_DNS env (recommended).
  -config-file string
    	Nginx access log to follow. (default "/var/log/nginx/access.log")
  -file string
    	Nginx access log to follow. (default "/var/log/nginx/access.log")
  -time-format string
    	Nginx log time format. (default "02/Jan/2006:15:04:05 -0700")

  -config string
    	Nginx config contents instead of config-file.
  -debug
    	Debug Sentry
  -env string
    	Environment to use in event.
  -message string
    	Issue message. (default "500")
  -server-name string
    	Server name to use in event, default to current host name.