<?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: How to log REST API calls? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-log-REST-API-calls/m-p/113938#M23833</link>
    <description>&lt;P&gt;You can do it through the CLI. I have this in my .bashrc on the splunk account so I can use the 'splunk' command anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    alias splunk=/opt/splunk/bin/splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Turn debug on:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk set log-level REST_Calls -level DEBUG`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set it back:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk set log-level REST_Calls -level INFO`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See what it is set to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk show log-level REST_Calls`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These are also available through the GUI:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    System settings » System logging » REST_Calls
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Mar 2017 20:31:33 GMT</pubDate>
    <dc:creator>wrangler2x</dc:creator>
    <dc:date>2017-03-22T20:31:33Z</dc:date>
    <item>
      <title>How to log REST API calls?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-log-REST-API-calls/m-p/113936#M23831</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to debug Splunk REST API calls and need verbose logging of life cycle of that transaction on server side.&lt;/P&gt;

&lt;P&gt;In this documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/RESTUM/RESTusing#Logging_REST_calls"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/RESTUM/RESTusing#Logging_REST_calls&lt;/A&gt;&lt;BR /&gt;
it mentioned &lt;BR /&gt;
'To log REST API calls to the splunkd.log file, set the special logger REST_Calls to -X DELETE0.'&lt;/P&gt;

&lt;P&gt;Where and how to set REST_Calls ?&lt;/P&gt;

&lt;P&gt;I tried following which definitely doesn't work &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;/opt/splunk/bin/splunk set log-level REST_Calls -level 'DELETE0'&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I tired setting it up to DEBUG but that didn't give me much information related to my query.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;/opt/splunk/bin/splunk set log-level REST_Calls -level 'DEBUG'&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Any other way to turn on debugging ?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 19:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-log-REST-API-calls/m-p/113936#M23831</guid>
      <dc:creator>abhisawa</dc:creator>
      <dc:date>2015-01-28T19:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to log REST API calls?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-log-REST-API-calls/m-p/113937#M23832</link>
      <description>&lt;P&gt;Setting the level for &lt;CODE&gt;REST_Calls&lt;/CODE&gt; in &lt;A href="http://localhost:8000/en-US/manager/search/server/logger?offset=450"&gt;http://localhost:8000/en-US/manager/search/server/logger?offset=450&lt;/A&gt; tops out at &lt;CODE&gt;DEBUG&lt;/CODE&gt; for me. Setting that significantly increases (zero to 100, basically) the logging for that component in splunkd.log.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 20:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-log-REST-API-calls/m-p/113937#M23832</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-01-28T20:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to log REST API calls?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-log-REST-API-calls/m-p/113938#M23833</link>
      <description>&lt;P&gt;You can do it through the CLI. I have this in my .bashrc on the splunk account so I can use the 'splunk' command anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    alias splunk=/opt/splunk/bin/splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Turn debug on:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk set log-level REST_Calls -level DEBUG`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set it back:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk set log-level REST_Calls -level INFO`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See what it is set to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    `$ splunk show log-level REST_Calls`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These are also available through the GUI:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    System settings » System logging » REST_Calls
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2017 20:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-log-REST-API-calls/m-p/113938#M23833</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2017-03-22T20:31:33Z</dc:date>
    </item>
  </channel>
</rss>

