Closed vinbh closed 1 year ago
Hey,
your -format
command-line flag overrides your format
value in your configuration file, and the usual aliases for common log formats (like common
) are not supported; regardless if on the command-line or configuration file, you'll need to specify the full log format.
Hope that helps!
There has not been any activity to this issue in the last 30 days. It will automatically be closed after 7 more days. Remove the stale
label to prevent this.
Hi Martin,
when using the log format as common in my nginx log lines, they are not being parsed and I get this error.
Steps to reproduce the behavior (as minimally and precisely as possible) Even when running with systemd using config file below, it fails to parse logs.
$ ./prometheus-nginxlog-exporter \ -format="common" \ -listen-port=4040 \ -namespace=nginx \ [PATHS-TO-LOGFILES...]
Expected behavior Expect to see metrics at ip:4040/metrics
Configuration file (remove section, if not applicable):
Example log file (remove section, if not applicable):
Metrics output (remove section, if not applicable):
Environment: