searchLogs

指定されたパラメーターのログを取得します。

Cloud および 統合アプライアンス に適用されます。

パラメーター:

logComponent
ログの生成対象である指定コンポーネント。 logComponent は、以下のいずれかです。
  • hardware
  • resources
  • network
  • security
  • orchestration
  • deployment
  • all
logLevel
指定コンポーネントに対して実行されるロギングのレベル。 logLevel は、以下のいずれかです。
  • critical
  • error
  • warning
  • info
  • all
maxDaysOld
ログ取得のためにさかのぼる最大日数。上限を設定しない場合は -1 を使用します。
status
検索に含めるログのステータスの指定。status は、以下のいずれかです。
  • resolved
  • unresolved
  • all
page
ゼロを基点としたページ番号付けを使用します。ログのページ編集はゼロから開始されます。 page の最大サイズは 2,147,483,647 として記述する必要があります。
pageSize
戻されるログ・ページのサイズを指定します。 pageSize の最大サイズは 2,147,483,647 として記述する必要があります。
戻り:
指定されたパラメーターに一致するログ。

例:

以下の例は、指定されたパラメーターに一致するログを検索する SOAP 要求です。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:log="http://www.approuter.com/schemas/2008/1/lognotif">
 <soapenv:Header>
  <log:sessionId>AD2E025868AC1392A44E6E27E4594EF9</log:sessionId>
 </soapenv:Header>
 <soapenv:Body>
  <log:searchLogs>
   <log:logComponent>orchestration</log:logComponent>
   <log:logLevel>error</log:logLevel>
   <log:maxDaysOld>6</log:maxDaysOld>
   <log:status>all</log:status>
   <log:page>1</log:page>
   <log:pageSize>5</log:pageSize>
  </log:searchLogs>
 </soapenv:Body>
</soapenv:Envelope>
以下は、要求に対する SOAP 応答の例です。
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
 <S:Body>
  <ns3:searchLogsResponse xmlns:ns2="http://www.approuter.com/
  schemas/2008/1/lognotif/types" xmlns:ns3="http://www.approuter.com/
  schemas/2008/1/lognotif">
   <ns3:logs>
    <ns2:system>orchestration</ns2:system>
    <ns2:message>Internal error: java.lang.RuntimeException: Could
    not create the module activity: invoke for module http://www.approuter.com/
    module/jde/: com.approuter.maestro.sdk.mpi.ActivityCreationException: Not able
    to connect to gateway</ns2:message>
    <ns2:id>10157</ns2:id>
    <ns2:level>error</ns2:level>
    <ns2:timestamp>2010-04-07T09:03:30.155Z</ns2:timestamp>
   </ns3:logs>
   <ns3:logs>
    <ns2:system>orchestration</ns2:system>
    <ns2:message>Unable to compile the orchestration config-url://
    JDE_TestCase_101/3.2/Default/Orchestrations/Orchestration</ns2:message>
    <ns2:id>10156</ns2:id>
    <ns2:level>error</ns2:level>
    <ns2:timestamp>2010-04-07T09:03:29.124Z</ns2:timestamp>
   </ns3:logs>
   <ns3:logs>
    <ns2:system>orchestration</ns2:system>
    <ns2:message>Error while trying to call remote operation connect
    on gateway for activity com.approuter.module.jde.activity.JdeInvoke and
    Secure Connector 2133, error is The Secure Connector name: 2133 is not
    correct. Please specify the right agent name</ns2:message>
    <ns2:id>10155</ns2:id>
    <ns2:level>error</ns2:level>
    <ns2:timestamp>2010-04-07T09:03:29.110Z</ns2:timestamp>
   </ns3:logs>
   <ns3:logs>
    <ns2:system>orchestration</ns2:system>
    <ns2:message>Undeploy of Orchestration config-url://
    JDE_TestCase_101/3.2/Default/Orchestrations/Orchestration failed:
    Orchestration not deployed: config-url://JDE_TestCase_101/3.2/Default/
    Orchestrations/Orchestration.</ns2:message>
    <ns2:id>10153</ns2:id>
    <ns2:level>error</ns2:level>
    <ns2:timestamp>2010-04-07T08:48:30.078Z</ns2:timestamp>
   </ns3:logs>
   <ns3:logs>
    <ns2:system>orchestration</ns2:system>
    <ns2:message>Orchestration not deployed: config-url://
    JDE_TestCase_101/3.2/Default/Orchestrations/Orchestration</ns2:message>
    <ns2:id>10152</ns2:id>
    <ns2:level>error</ns2:level>
    <ns2:timestamp>2010-04-07T08:48:29.059Z</ns2:timestamp>
    </ns3:logs>
  </ns3:searchLogsResponse>
 </S:Body>
</S:Envelope>



フィードバック | 特記事項


タイム・スタンプ・アイコン 最終更新: 2013年11月7日 (木曜日)


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.api.doc/ci00146.html