Browse Source

修改cloudflare推送日志的字段

ChenHaolong 1 year ago
parent
commit
fcfe1c8095
1 changed files with 3 additions and 2 deletions
  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)