Преглед изворни кода

修改cloudflare推送日志的字段

ChenHaolong пре 1 година
родитељ
комит
f48530d2fb
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      server/LogPushCloudflareServer.go

+ 3 - 3
server/LogPushCloudflareServer.go

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