Kaynağa Gözat

修改cloudflare推送日志的字段

ChenHaolong 1 yıl önce
ebeveyn
işleme
fcfe1c8095
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      server/LogPushCloudflareServer.go

+ 3 - 2
server/LogPushCloudflareServer.go

@@ -67,8 +67,9 @@ func (s *LogPushCloudflareServer) CreateLogPushJobByZoneId(ctx context.Context,
 		Enabled:         true,
 		Frequency:       "low",
 		LogpullOptions: "fields=ClientIP,ClientCountry,ClientRequestMethod,ClientRequestProtocol," +
-			"ClientRequestHost,ClientRequestPath,ClientRequestURI,EdgeResponseStatus,EdgeResponseBytes,ClientRequestUserAgent," +
-			"CacheCacheStatus,CacheResponseBytes,EdgeStartTimestamp,EdgeEndTimestamp&timestamps=rfc3339,",
+			"ClientRequestHost,ClientRequestPath,ClientRequestURI,ClientRequestBytes," +
+			"EdgeResponseStatus,EdgeResponseBytes,ClientRequestUserAgent,CacheCacheStatus,CacheResponseBytes," +
+			"EdgeStartTimestamp,EdgeEndTimestamp&timestamps=rfc3339,",
 		OwnershipChallenge: requestCloudflare.GetOwnershipChallenge(),
 	}
 	result, err := api.CreateZoneLogpushJob(ctxAPI, requestCloudflare.GetZoneId(), job)