<?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: setting proxyservice log levels via api in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/setting-proxyservice-log-levels-via-api/m-p/1809777#M14985</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22807"&gt;@gandalfgray&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not too familiar with the exact syntax of Qlik-Cli PowerShell module. However error 400 usually means that there is something wrong in the request body syntax.&lt;/P&gt;&lt;P&gt;There is an example of how to change Scheduler service log verbosity in the below article using directly the QRS API:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Qlik-Sense-QRS-API-How-to-modify-Scheduler-service-settings/ta-p/1713620" target="_blank"&gt;https://community.qlik.com/t5/Knowledge-Base/Qlik-Sense-QRS-API-How-to-modify-Scheduler-service-settings/ta-p/1713620&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 May 2021 13:40:23 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2021-05-21T13:40:23Z</dc:date>
    <item>
      <title>setting proxyservice log levels via api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/setting-proxyservice-log-levels-via-api/m-p/1809770#M14984</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We want to be able to programmatically w Powershell set log levels of services, ie proxy, repository, scheduler and engine services.&lt;/P&gt;&lt;P&gt;As we do have the Powershell module Qlik-Cli, as a proof of concept we tried:&lt;/P&gt;&lt;DIV class="p-rich_text_section"&gt;Example:&lt;/DIV&gt;&lt;PRE&gt;$id = '856e885a-aaa5-455b-9a6a-f86d9bf15fcd'&lt;BR /&gt;$proxy = Invoke-QlikGet -path "/qrs/proxyservice/$id"&lt;BR /&gt;$proxy.settings.logVerbosity.logVerbositySystem = 1$json = $proxy | ConvertTo-Json -Compress -Depth 9&lt;BR /&gt;Invoke-QlikPut -Path "/qrs/proxyservice/$id" -Body $json&lt;/PRE&gt;&lt;DIV class="p-rich_text_section"&gt;We get an error on the Invoke-QlikPut:&lt;/DIV&gt;&lt;PRE&gt;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;BR /&gt;At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\1.21.0\functions\core.ps1:66 char:23&lt;BR /&gt;+ ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$result = Invoke-RestMethod @paramInvokeRestMethod @params&lt;BR /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;&amp;nbsp;&amp;nbsp;+ CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/PRE&gt;&lt;DIV class="p-rich_text_section"&gt;Can anyone understand why we get an error?&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 May 2021 13:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/setting-proxyservice-log-levels-via-api/m-p/1809770#M14984</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2021-05-21T13:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: setting proxyservice log levels via api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/setting-proxyservice-log-levels-via-api/m-p/1809777#M14985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22807"&gt;@gandalfgray&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not too familiar with the exact syntax of Qlik-Cli PowerShell module. However error 400 usually means that there is something wrong in the request body syntax.&lt;/P&gt;&lt;P&gt;There is an example of how to change Scheduler service log verbosity in the below article using directly the QRS API:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Qlik-Sense-QRS-API-How-to-modify-Scheduler-service-settings/ta-p/1713620" target="_blank"&gt;https://community.qlik.com/t5/Knowledge-Base/Qlik-Sense-QRS-API-How-to-modify-Scheduler-service-settings/ta-p/1713620&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 13:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/setting-proxyservice-log-levels-via-api/m-p/1809777#M14985</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-05-21T13:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: setting proxyservice log levels via api</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/setting-proxyservice-log-levels-via-api/m-p/1811038#M14999</link>
      <description>&lt;P&gt;With some help from Levi:&lt;/P&gt;&lt;P&gt;adding&lt;/P&gt;&lt;PRE&gt;$global:qlik_output_raw=$true&lt;BR /&gt;$global:&lt;SPAN&gt;rawoutput=$true&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;before the &lt;STRONG&gt;Invoke-QlikGet&lt;/STRONG&gt; call solved&amp;nbsp; it.&lt;/P&gt;&lt;P&gt;Without that code&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Qlik-CLI&lt;/STRONG&gt; prettifies the dates to a format&amp;nbsp; that is not accepted by the &lt;STRONG&gt;Invoke-QlikPut&lt;/STRONG&gt; function&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 11:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/setting-proxyservice-log-levels-via-api/m-p/1811038#M14999</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2021-05-27T11:48:30Z</dc:date>
    </item>
  </channel>
</rss>

