Replies: 1 comment 5 replies
-
How does your error log look like? Does it match the format |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I wanted to get log from error.log, but I can't to find format log.
I know that, we can't to change log_format for error.log only level of errors. But which log_format use to parse?
thanks for any suggestions
I read this article #185 but it's not work for me.
Can't see fully messages
namespace "endpoint" {
source = {
files = [
"/var/log/nginx/endpoint.log"
]
}
format = "$date $time [$level] $pid#$tid: *$cid $message"
relabel "level" { from = "level" }
}
result
endpoint_http_response_count_total{level="alert",method="",status=""} 1
Beta Was this translation helpful? Give feedback.
All reactions