Skip to main content

2026 年 8 月 17 日

增加 Omnissa Access Connector 日志文件的大小和数量

目录同步、用户身份验证、Kerberos 身份验证和虚拟应用程序服务分别创建可用于对问题进行故障排除的日志文件。如果您想要保存的日志多于默认保存的数量,可以增加文件的大小以及在轮换日志之前创建的文件数量。

服务的所有日志文件都保存在 INSTALL_DIR\Access Connector\servicename\logs 文件夹中。例如,目录同步服务的日志文件位于 INSTALL_DIR\Access Connector\Directory Sync Service\logs 文件夹中。

通常情况下,您可能需要增加大小和数量的日志文件是 servicename-service.logservicename-vertx-access.log 文件。

以下 XML 文件包含日志文件的设置:

  • The INSTALL_DIR\Access Connector\servicename\servicename.xml 文件中包含 servicename.err.logservicename.out.log 文件的设置。

    日志文件设置文件默认大小已保存的默认文件数
    DirectorySyncService.err.logINSTALL_DIR\Access Connector\Directory Sync Service\DirectorySyncService.xml10240 KB8
    DirectorySyncService.out.logINSTALL_DIR\Access Connector\Directory Sync Service\DirectorySyncService.xml10240 KB8
    UserAuthService.err.logINSTALL_DIR\Access Connector\User Auth Service\UserAuthService.xml10240 KB8
    UserAuthService.out.logINSTALL_DIR\Access Connector\User Auth Service\UserAuthService.xml10240 KB8
    KerberosAuthService.err.logINSTALL_DIR\Access Connector\Kerberos Auth Service\KerberosAuthService.xml10240 KB8
    KerberosAuthService.out.logINSTALL_DIR\Access Connector\Kerberos Auth Service\KerberosAuthService.xml10240 KB8
    VirtualAppService.err.logINSTALL_DIR\Access Connector\Virtual App Service\VirtualAppService.xml10240 KB8
    VirtualAppService.out.logINSTALL_DIR\Access Connector\Virtual App Service\VirtualAppService.xml10240 KB8
  • INSTALL_DIR\Access Connector\servicename\conf\log4j2-override.xml 中包含 servicename-service.logservicename-vertx-access.log 文件的设置。

    日志文件设置文件默认大小已保存的默认文件数
    eds-service.logINSTALL_DIR\Access Connector\Directory Sync Service\conf\log4j2-override.xml50 MB5
    eds-vertx-access.logINSTALL_DIR\Access Connector\Directory Sync Service\conf\log4j2-override.xml50 MB5
    eas-service.logINSTALL_DIR\Access Connector\User Auth Service\conf\log4j2-override.xml50 MB5
    eas-vertx-access.logINSTALL_DIR\Access Connector\User Auth Service\conf\log4j2-override.xml50 MB5
    eks-service.logINSTALL_DIR\Access Connector\Kerberos Auth Service\conf\log4j2-override.xml50 MB5
    eks-vertx-access.logINSTALL_DIR\Access Connector\Kerberos Auth Service\conf\log4j2-override.xml50 MB5
    eis-service.logINSTALL_DIR\Access Connector\Virtual App Service\conf\log4j2-override.xml50 MB5
    eis-vertx-access.logINSTALL_DIR\Access Connector\Virtual App Service\conf\log4j2-override.xml50 MB5

**注意:**有关日志文件的描述,请参阅访问 Omnissa Access Connector 日志文件。该页面还提供有关启用 DEBUG 模式和跟踪日志文件的信息。

过程

  1. 登录到 Omnissa Access Connector 服务器。

  2. 要修改服务的 servicename.err.logservicename.out.log 文件的大小或数量,请执行以下步骤。

    1. 导航到 INSTALL_DIR\Access Connector\servicename 文件夹,然后打开 servicename.xml 文件以进行编辑。例如,对于目录同步服务,请编辑 INSTALL_DIR\Access Connector\Directory Sync Service\DirectorySyncService.xml 文件。

    2. 找到以下条目:

         <log mode="roll-by-size">
              <sizeThreshold>10240</sizeThreshold>
              <keepFiles>8</keepFiles>
          </log>
      
    3. 根据您的要求更新 <sizeThreshold> 条目中的文件大小,以及要保留在 <keepFiles> 条目中的文件数量。

    4. 保存文件。

  3. 要增加服务的 servicename-service.logservicename-vertx-access.log 文件的大小和数量,请执行以下步骤。

    1. 导航到 INSTALL_DIR\Access Connector\servicename\conf 文件夹,然后编辑 log4j2-override.xml 文件。例如,对于目录同步服务,请编辑 INSTALL_DIR\Access Connector\Directory Sync Service\conf\log4j2-override.xml 文件。

    2. <Configuration …></Configuration> 行中添加以下行:

      <Appenders>
      <RollingFile name="fileLogger" fileName="${logFilePathAndNamePrefix}.log"
      filePattern="${logFilePathAndNamePrefix}-%i.log">
      
      <PatternLayout pattern="${defaultLayout}" />
      
      <Policies>
      <SizeBasedTriggeringPolicy size="50 MB" />
      </Policies>
      <DefaultRolloverStrategy max="5"/>
      </RollingFile>
      
      <!-- Rolling file appender, used by vertx access log -->
      <RollingFile name="accessFileLogger" fileName="${accessLogFilePathAndNamePrefix}.log"
      filePattern="${accessLogFilePathAndNamePrefix}-%i.log">
      
      <PatternLayout pattern="${accessLogLayout}" />
      
      <Policies>
      <SizeBasedTriggeringPolicy size="50 MB" />
      </Policies>
      <DefaultRolloverStrategy max="5"/>
      </RollingFile>
      </Appenders>
      

      注意:<RollingFile name="fileLogger"… 部分用于 servicename-service.log 文件,<RollingFile name="accessFileLogger"… 部分用于 servicename-vertx-access.log 文件。

    3. 要指定 servicename-service.log 文件的大小和数量,请在您添加的 <RollingFile name="fileLogger"… 部分中编辑以下行:

      • <SizeBasedTriggeringPolicy size="50 MB" />,以便根据您的要求指定文件大小
      • <DefaultRolloverStrategy max="5"/>,以便根据您的要求指定要保留的文件数量
    4. 要指定 servicename-vertx-access.log 文件的大小和数量,请在您添加的 <RollingFile name="accessFileLogger"… 部分中编辑以下行:

      • <SizeBasedTriggeringPolicy size="50 MB" />,以便根据您的要求指定文件大小
      • <DefaultRolloverStrategy max="5"/>,以便根据您的要求指定要保留的文件数量
    5. 保存文件。

此页面对您有帮助吗?

对本主题提供反馈

本主题对您有帮助吗?

请勿填写任何个人信息或机密信息。

正在生成链接…