소스 검색

修改cloudflare推送日志的字段

ChenHaolong 1 년 전
부모
커밋
fcfe1c8095
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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)