<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Log Collection API Call not working in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4643103#M3294</link>
    <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/976325"&gt;@Alexander Stevenson&lt;/a&gt; &amp;amp; &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/438021"&gt;@npetrele&lt;/a&gt;, thank you for your responses.&lt;/P&gt;&lt;P&gt;Believe have figued out the issue here. When you get the fault code as &amp;lt;faultcode&amp;gt;soapenv:Server&amp;lt;/faultcode&amp;gt; &amp;lt;faultstring&amp;gt;unknown&amp;lt;/faultstring&amp;gt;, it is generally that your AXL call is missing / has incorrect&lt;BR /&gt;mandatory parameters.&lt;BR /&gt;In our case, it looks like the format for ToDate, FromDate was incorrect. Also, the node I used this time was in GMT timezone, so Timezone format might also be something to looked into.&lt;/P&gt;&lt;P&gt;Modified the call as below and bang, the Audit log files were successfully pushed to the remote SFTP server.&lt;/P&gt;&lt;P&gt;&amp;lt;soap:JobType&amp;gt;PushtoSFTPServer&amp;lt;/soap:JobType&amp;gt;&lt;BR /&gt;&amp;lt;soap:ToDate&amp;gt;&amp;lt;/soap:ToDate&amp;gt;&lt;BR /&gt;&amp;lt;soap:FromDate&amp;gt;&amp;lt;/soap:FromDate&amp;gt;&lt;BR /&gt;&amp;lt;soap:TimeZone&amp;gt;Client: (GMT-0:0) Greenwich Mean Time&amp;lt;/soap:TimeZone&amp;gt;&lt;BR /&gt;&amp;lt;soap:RelText&amp;gt;Days&amp;lt;/soap:RelText&amp;gt;&lt;BR /&gt;&amp;lt;soap:RelTime&amp;gt;1&amp;lt;/soap:RelTime&amp;gt;&lt;BR /&gt;&amp;lt;soap:Port&amp;gt;22&amp;lt;/soap:Port&amp;gt;&lt;/P&gt;&lt;P&gt;This serves my purpose so did not explore the correct format for the dates or timezone parameter, will update this thread once I figure that out. Cheers!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 05:38:33 GMT</pubDate>
    <dc:creator>krnsn1601</dc:creator>
    <dc:date>2022-07-04T05:38:33Z</dc:date>
    <item>
      <title>Log Collection API Call not working</title>
      <link>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4635746#M3276</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;We are tying to pull the CUCM (Both v10.5 SU3 &amp;amp; 11.5 SU7) service logs (E.g. Cisco Audit Logs) via the Log collection API as detailed here - &lt;A href="https://developer.cisco.com/docs/sxml/#!log-collection-and-dimegetfileservice-api-reference/log-collection-and-dimegetfileservice-api-reference" target="_blank" rel="noopener"&gt;https://developer.cisco.com/docs/sxml/#!log-collection-and-dimegetfileservice-api-reference/log-collection-and-dimegetfileservice-api-reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The listNodeServiceLogs request works perfectly fine but when I use the selectLogFiles request, for both DownloadtoClient &amp;amp; PushtoSFTPServer, it fails with the following AXL response:&lt;BR /&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank" rel="noopener"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;soapenv:Fault&amp;gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;faultcode&amp;gt;soapenv:Server&amp;lt;/faultcode&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;faultstring&amp;gt;unknown&amp;lt;/faultstring&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&amp;lt;detail/&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Fault&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The XML request that I am using is as follows:&lt;BR /&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank" rel="noopener"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;" xmlns:soap="&lt;A href="http://schemas.cisco.com/ast/soap" target="_blank" rel="noopener"&gt;http://schemas.cisco.com/ast/soap&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;soapenv:Header/&amp;gt;&lt;BR /&gt;&amp;lt;soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;soap:selectLogFiles&amp;gt;&lt;BR /&gt;&amp;lt;soap:FileSelectionCriteria&amp;gt;&lt;BR /&gt;&amp;lt;soap:ServiceLogs&amp;gt;&lt;BR /&gt;&amp;lt;soap:item&amp;gt;Cisco Audit Logs&amp;lt;/soap:item&amp;gt;&lt;BR /&gt;&amp;lt;/soap:ServiceLogs&amp;gt;&lt;BR /&gt;&amp;lt;soap:SystemLogs&amp;gt;&lt;BR /&gt;&amp;lt;soap:item&amp;gt;&amp;lt;/soap:item&amp;gt;&lt;BR /&gt;&amp;lt;/soap:SystemLogs&amp;gt;&lt;BR /&gt;&amp;lt;soap:SearchStr&amp;gt;&amp;lt;/soap:SearchStr&amp;gt;&lt;BR /&gt;&amp;lt;soap:Frequency&amp;gt;OnDemand&amp;lt;/soap:Frequency&amp;gt;&lt;BR /&gt;&amp;lt;soap:JobType&amp;gt;PushtoSFTPServer&amp;lt;/soap:JobType&amp;gt;&lt;BR /&gt;&amp;lt;soap:ToDate&amp;gt;06/15/22 11:59 PM&amp;lt;/soap:ToDate&amp;gt;&lt;BR /&gt;&amp;lt;soap:FromDate&amp;gt;06/14/22 11:00 AM&amp;lt;/soap:FromDate&amp;gt;&lt;BR /&gt;&amp;lt;soap:TimeZone&amp;gt;Client: (GMT+5:30) India Standard Time-Asia/Calcutta&amp;lt;/soap:TimeZone&amp;gt;&lt;BR /&gt;&amp;lt;soap:RelText/&amp;gt;&lt;BR /&gt;&amp;lt;soap:RelTime/&amp;gt;&lt;BR /&gt;&amp;lt;soap:Port&amp;gt;22&amp;lt;/soap:Port&amp;gt;&lt;BR /&gt;&amp;lt;soap:IPAddress&amp;gt;x.x.x.x&amp;lt;/soap:IPAddress&amp;gt;&lt;BR /&gt;&amp;lt;soap:UserName&amp;gt;username&amp;lt;/soap:UserName&amp;gt;&lt;BR /&gt;&amp;lt;soap:Password&amp;gt;password&amp;lt;/soap:Password&amp;gt;&lt;BR /&gt;&amp;lt;soap:ZipInfo&amp;gt;false&amp;lt;/soap:ZipInfo&amp;gt;&lt;BR /&gt;&amp;lt;soap:RemoteFolder&amp;gt;/&amp;lt;/soap:RemoteFolder&amp;gt;&lt;BR /&gt;&amp;lt;/soap:FileSelectionCriteria&amp;gt;&lt;BR /&gt;&amp;lt;/soap:selectLogFiles&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have tried on different CUCM nodes, tried changing the OS security to "permissive" but still getting the same error. The SOAP traces are not of much help either, if you can please guide us through the correct request please. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 11:04:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4635746#M3276</guid>
      <dc:creator>krnsn1601</dc:creator>
      <dc:date>2022-06-21T11:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Log Collection API Call not working</title>
      <link>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4641145#M3287</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/875892"&gt;@krnsn1601&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just an observation...every example for this API call I see (including the link you shared) has 2 lines under 'ServiceLogs', but you only have one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out this repo of s&lt;SPAN&gt;ample scripts demonstrating usage of various Cisco CUCM Serviceability APIs using Python and the Zeep SOAP library:&amp;nbsp;&lt;A href="https://github.com/CiscoDevNet/serviceability-python-zeep-samples" target="_blank" rel="noopener"&gt;CiscoDevNet/serviceability-python-zeep-samples&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;logCollection_GetOneFile.py - Performs a listing of log files available for a specific service (Cisco Audit Logs), retrieves the contents of the latest file, then parses/prints a few lines of the results (&amp;lt;selectLogFiles&amp;gt;, &amp;lt;GetOneFile&amp;gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 19:04:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4641145#M3287</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2022-06-29T19:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Log Collection API Call not working</title>
      <link>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4642590#M3290</link>
      <description>&lt;P&gt;Try connecting to your sftp server on port 22 with the same username/password you're using in the AXL, and double-check that you're using the right remote folder.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 18:56:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4642590#M3290</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2022-07-01T18:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Log Collection API Call not working</title>
      <link>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4643103#M3294</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/976325"&gt;@Alexander Stevenson&lt;/a&gt; &amp;amp; &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/438021"&gt;@npetrele&lt;/a&gt;, thank you for your responses.&lt;/P&gt;&lt;P&gt;Believe have figued out the issue here. When you get the fault code as &amp;lt;faultcode&amp;gt;soapenv:Server&amp;lt;/faultcode&amp;gt; &amp;lt;faultstring&amp;gt;unknown&amp;lt;/faultstring&amp;gt;, it is generally that your AXL call is missing / has incorrect&lt;BR /&gt;mandatory parameters.&lt;BR /&gt;In our case, it looks like the format for ToDate, FromDate was incorrect. Also, the node I used this time was in GMT timezone, so Timezone format might also be something to looked into.&lt;/P&gt;&lt;P&gt;Modified the call as below and bang, the Audit log files were successfully pushed to the remote SFTP server.&lt;/P&gt;&lt;P&gt;&amp;lt;soap:JobType&amp;gt;PushtoSFTPServer&amp;lt;/soap:JobType&amp;gt;&lt;BR /&gt;&amp;lt;soap:ToDate&amp;gt;&amp;lt;/soap:ToDate&amp;gt;&lt;BR /&gt;&amp;lt;soap:FromDate&amp;gt;&amp;lt;/soap:FromDate&amp;gt;&lt;BR /&gt;&amp;lt;soap:TimeZone&amp;gt;Client: (GMT-0:0) Greenwich Mean Time&amp;lt;/soap:TimeZone&amp;gt;&lt;BR /&gt;&amp;lt;soap:RelText&amp;gt;Days&amp;lt;/soap:RelText&amp;gt;&lt;BR /&gt;&amp;lt;soap:RelTime&amp;gt;1&amp;lt;/soap:RelTime&amp;gt;&lt;BR /&gt;&amp;lt;soap:Port&amp;gt;22&amp;lt;/soap:Port&amp;gt;&lt;/P&gt;&lt;P&gt;This serves my purpose so did not explore the correct format for the dates or timezone parameter, will update this thread once I figure that out. Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 05:38:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4643103#M3294</guid>
      <dc:creator>krnsn1601</dc:creator>
      <dc:date>2022-07-04T05:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Log Collection API Call not working</title>
      <link>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4644006#M3295</link>
      <description>&lt;P&gt;Thanks for sharing how you soled this,&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/875892"&gt;@krnsn1601&lt;/a&gt;; I'm sure it will be helpful to other people in the community.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 11:34:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4644006#M3295</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2022-07-05T11:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Log Collection API Call not working</title>
      <link>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4644676#M3298</link>
      <description>&lt;P&gt;At least on CUCM 14, the &amp;lt;RelText&amp;gt; and &amp;lt;RelTime&amp;gt; values are ignored (though they must be present, with valid values - i.e. 'None' and '0') so you should have received all existing files rather than the last day's worth...&lt;/P&gt;
&lt;P&gt;I've attempted to clarify/update the docs here based on re-testing with CUCM 14: &lt;A href="https://developer.cisco.com/docs/sxml/#!log-collection-and-dimegetfileservice-api-reference/log-collection-api" target="_blank"&gt;https://developer.cisco.com/docs/sxml/#!log-collection-and-dimegetfileservice-api-reference/log-collection-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Let us know if your observations differ!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 00:10:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/log-collection-api-call-not-working/m-p/4644676#M3298</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2022-07-06T00:10:35Z</dc:date>
    </item>
  </channel>
</rss>

