searchLogs

Gets the logs for the specified parameters.

Applies to Clouds and Integration Appliances.

Parameters:

logComponent
The specified component for which logs are generated. logComponent is one of:
  • hardware
  • resources
  • network
  • security
  • orchestration
  • deployment
  • all
logLevel
The level of logging to be done for the specified component. logLevel is one of:
  • critical
  • error
  • warning
  • info
  • all
maxDaysOld
The maximum number of days to go back to get logs. Use -1 for no maximum.
status
The specified status of logs to be included in the search. status is one of:
  • resolved
  • unresolved
  • all
page
Uses 0-based page numbering. Log pagination starts with zero. Maximum size of page should be documented as 2,147,483,647.
pageSize
Specifies the size of the log pages that are returned. Maximum size of pageSize should be documented as 2,147,483,647.
Returns:
The logs that match the specified parameters.

Examples:

The following example is a SOAP request to search the logs for logs that match the specified parameters.
<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>
The following example is the SOAP reply to the request.
<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>



Feedback | Notices


Timestamp icon Last updated: Thursday, December 17, 2015


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