<?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: Management API &amp;quot;show logs&amp;quot; not working as expected (R80.40 last jumbo) in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/129856#M75472</link>
    <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/30825"&gt;@cjunior&lt;/a&gt;&amp;nbsp;Did you find solution for this problem? I am facing a similar issue with show-logs management-api where I am not able to get the paged results.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 13:46:27 GMT</pubDate>
    <dc:creator>mohit_tater</dc:creator>
    <dc:date>2021-09-21T13:46:27Z</dc:date>
    <item>
      <title>Management API "show logs" not working as expected (R80.40 last jumbo)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/121550#M75469</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I hope you are doing well.&lt;/P&gt;&lt;P&gt;I'm trying to collect logs with paging, but it get wrong for sometimes . It starts fine at first page and after few collected pages, the result is an empty logs list although the logs-count parameter shows that there must be log entries.&lt;/P&gt;&lt;P&gt;I have no idea where to find the way to fix this issue.&lt;/P&gt;&lt;P&gt;First command run: (always OK for any filter values)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;mgmt_cli show logs new-query.time-frame last-7-days new-query.max-logs-per-request 50 new-query.filter app_category:Spam --session-id VWxBmdBgKK0ZRCXteLAD3xQtajmIPEcfYC9uQXguyPs --version 1.6.1 --debug on --format json&lt;/LI-CODE&gt;&lt;P&gt;Paging command: (OK till 3 or 4 attempts / Depends on filter or max-logs-per-request values informed)&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;mgmt_cli show logs query-id WEB_API_4bd6e105-3479-4737-8c07-3e937954b1aa --session-id VWxBmdBgKK0ZRCXteLAD3xQtajmIPEcfYC9uQXguyPs --version 1.6.1 --debug on --format json&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;API debug result (on fail):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Put into map [query-id]=[WEB_API_4bd6e105-3479-4737-8c07-3e937954b1aa]
Command: 'show-logs', JSON Payload is: '{"query-id":"WEB_API_4bd6e105-3479-4737-8c07-3e937954b1aa"}'
Command [show-logs]
Adding version to the URL: [1.6.1]
The URL with version [https://127.0.0.1:443/web_api/v1.6.1]
URL [https://127.0.0.1:443/web_api/v1.6.1]
Headers: [X-chkp-sid: VWxBmdBgKK0ZRCXteLAD3xQtajmIPEcfYC9uQXguyPs, Accept: application/json, user-agent: mgmt_cli, Content-Type: application/json]
SendRequest
Adding version to the URL: [1.6.1]
The URL with version [https://127.0.0.1:443/web_api/v1.6.1]
Full URL [https://127.0.0.1:443/web_api/v1.6.1/show-logs]
Using internal Check Point certificate verification
.
.
.
Local fingerprint is equal to the remote one
SSLCtxVerifyCB returns [true]
CRestRequest::WriteData
size=[1], nmemb=[17]
received data = [HTTP/1.1 200 OK
]
Data [HTTP/1.1 200 OK
] is written
CRestRequest::WriteData
size=[1], nmemb=[37]
received data = [Date: Thu, 17 Jun 2021 19:45:38 GMT
]
Data [Date: Thu, 17 Jun 2021 19:45:38 GMT
] is written
CRestRequest::WriteData
size=[1], nmemb=[14]
received data = [Server: CPWS
]
Data [Server: CPWS
] is written
CRestRequest::WriteData
size=[1], nmemb=[64]
received data = [Strict-Transport-Security: max-age=31536000; includeSubDomains
]
Data [Strict-Transport-Security: max-age=31536000; includeSubDomains
] is written
CRestRequest::WriteData
size=[1], nmemb=[29]
received data = [X-Frame-Options: SAMEORIGIN
]
Data [X-Frame-Options: SAMEORIGIN
] is written
CRestRequest::WriteData
size=[1], nmemb=[32]
received data = [Content-Type: application/json
]
Data [Content-Type: application/json
] is written
CRestRequest::WriteData
size=[1], nmemb=[32]
received data = [X-UA-Compatible: IE=EmulateIE8
]
Data [X-UA-Compatible: IE=EmulateIE8
] is written
CRestRequest::WriteData
size=[1], nmemb=[28]
received data = [X-Forwarded-Host-Port: 443
]
Data [X-Forwarded-Host-Port: 443
] is written
CRestRequest::WriteData
size=[1], nmemb=[28]
received data = [Transfer-Encoding: chunked
]
Data [Transfer-Encoding: chunked
] is written
CRestRequest::WriteData
size=[1], nmemb=[2]
received data = [
]
Data [
] is written
CRestRequest::WriteData
size=[1], nmemb=[102]
received data = [{
"logs" : [ ],
"logs-count" : 50,
"query-id" : "WEB_API_4bd6e105-3479-4737-8c07-3e937954b1aa"
}
0

]
Data [{
"logs" : [ ],
"logs-count" : 50,
"query-id" : "WEB_API_4bd6e105-3479-4737-8c07-3e937954b1aa"
}] is written
Send request succeeded. Response code [200]
Success message [{
"logs" : [ ],
"logs-count" : 50,
"query-id" : "WEB_API_4bd6e105-3479-4737-8c07-3e937954b1aa"
}]
Error message []
Getvalue of parameter [task-id] from json
Missing [task-id] field in json
Getvalue of parameter [login-required] from json
Missing [login-required] field in json
Getvalue of parameter [tasks] from json
Missing [tasks] field in json
No task-id in response&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with this.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;cjunior&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 13:53:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/121550#M75469</guid>
      <dc:creator>cjunior</dc:creator>
      <dc:date>2021-06-18T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Management API "show logs" not working as expected (R80.40 last jumbo)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/121590#M75470</link>
      <description>&lt;P&gt;Just so I understand:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The initial query succeeds (which just sets up a task)&lt;/LI&gt;
&lt;LI&gt;The first few queries to pull results based on task-id also succeeds.&lt;/LI&gt;
&lt;LI&gt;After a few requests, the query to pull results fails.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Do I have that right?&lt;BR /&gt;Recommend a TAC case here.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 20:42:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/121590#M75470</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-06-18T20:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Management API "show logs" not working as expected (R80.40 last jumbo)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/121593#M75471</link>
      <description>&lt;P&gt;Yes, you got it perfectly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now we realize that we have problem to get logs on EventLog or SmartView as well. It present log gaps for time frame or filter queries.&lt;/P&gt;&lt;P&gt;e.g.&lt;BR /&gt;#1 - "last-7-days" "app_category:Spam", we can see few logs not from today.&lt;/P&gt;&lt;P&gt;#2 - "today" "app_category:Spam": we can see few logs from today that not appears in query above.&lt;/P&gt;&lt;P&gt;#3 -"last-hour" "app_category:Spam": we can see few logs from last hour that not appears in "today" time frame.&lt;/P&gt;&lt;P&gt;In other words, the logs exists but sometimes cannot be retrieved due to some query issue.&lt;/P&gt;&lt;P&gt;Anyway, I'm to going to open a ticket on TAC.&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;cjunior&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 21:14:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/121593#M75471</guid>
      <dc:creator>cjunior</dc:creator>
      <dc:date>2021-06-18T21:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Management API "show logs" not working as expected (R80.40 last jumbo)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/129856#M75472</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/30825"&gt;@cjunior&lt;/a&gt;&amp;nbsp;Did you find solution for this problem? I am facing a similar issue with show-logs management-api where I am not able to get the paged results.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:46:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/129856#M75472</guid>
      <dc:creator>mohit_tater</dc:creator>
      <dc:date>2021-09-21T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Management API "show logs" not working as expected (R80.40 last jumbo)</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/129872#M75473</link>
      <description>&lt;P&gt;Yes, if I'm not wrong, it was fixed by take 119 (related issues: PRJ-23820, PRHF-12659).&lt;BR /&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 16:51:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Management-API-quot-show-logs-quot-not-working-as-expected-R80/m-p/129872#M75473</guid>
      <dc:creator>cjunior</dc:creator>
      <dc:date>2021-09-21T16:51:18Z</dc:date>
    </item>
  </channel>
</rss>

