我一直在寻找一种通用的日志轮换解决方案,该解决方案将轮换在Docker容器中运行的应用程序的日志。
是否可以将Nginx中的<strong> error.log </strong>转换为json?我需要将日志发送到外部日志查看器,为此,需要
我使用过 Nginx 文档并设置了访问日志格式。
<a href="https://docs.nginx.com/nginx/admin-guide/monitoring/logging/" rel="no
我的设置如下:
location.conf
<pre><code>location /foo {
set $x "foo"
}
location /foo2 {
set $notX "