chore: nginx integration: add note about adjusting regex if using custom log format (#5615)

This commit is contained in:
Raj Kamal Singh 2024-07-31 17:52:51 +05:30 committed by GitHub
parent aef935a817
commit 59121bd932
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,6 +110,13 @@ service:
```
### If using non-default nginx log format, adjust log parsing regex
If you are using a [custom nginx log format](https://docs.nginx.com/nginx/admin-guide/monitoring/logging/#setting-up-the-access-log),
please adjust the regex used for parsing logs in the receivers named
`filelog/nginx-access-logs` and `filelog/nginx-error-logs` in collector config.
#### Set Environment Variables
Set the following environment variables in your otel-collector environment: