Replies: 1 comment
-
I haven't done this myself, but in theory, you should be able to, yes. It was hard to find a definitive source on the actual format used for the NGINX error log -- all I could find was a StackOverflow post, according to which the error log follows the following log format:
In that case, the following configuration snippet might do the trick (untested -- let me know if and how it works out 😉): namespace "nginx" {
format = "$date $time [$level] $pid#$tid: *$cid $message"
relabel "level" {
from = "level"
}
// ...
} I'm not really sure which values are sensible to be used as labels -- apart from |
Beta Was this translation helpful? Give feedback.
-
Can we parse Nginx error logs too using this exporter?
Beta Was this translation helpful? Give feedback.
All reactions