https://github.com/alexandermatveev/sentry-nginx
Push Sentry events from nginx
https://github.com/alexandermatveev/sentry-nginx
go golang nginx sentry
Last synced: about 2 months ago
JSON representation
Push Sentry events from nginx
- Host: GitHub
- URL: https://github.com/alexandermatveev/sentry-nginx
- Owner: AlexanderMatveev
- Created: 2023-06-14T17:25:07.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-15T10:26:05.000Z (about 3 years ago)
- Last Synced: 2025-07-18T09:13:07.672Z (11 months ago)
- Topics: go, golang, nginx, sentry
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sentry-nginx
[](https://github.com/AlexanderMatveev/sentry-nginx/actions)
[](https://goreportcard.com/report/github.com/AlexanderMatveev/sentry-nginx)
Push Sentry important events by following nginx log file.
## Usage
```sh
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.
```