<?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: Rest API Modular Input: Exception performing request: in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310632#M58364</link>
    <description>&lt;P&gt;Hello. Did you fix it? I have the same issue.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 13:44:03 GMT</pubDate>
    <dc:creator>mf_download</dc:creator>
    <dc:date>2019-04-10T13:44:03Z</dc:date>
    <item>
      <title>Rest API Modular Input: Exception performing request:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310628#M58360</link>
      <description>&lt;P&gt;I try to use the REST API to pull down data from Instagram. Everything seems to be ok, we can receive data, but only after a restart of Splunk or I click to the Save button in REST API UI and the configuration will be reloaded. In both situations all new connections triggered by the scheduler via rest.py is not working:&lt;/P&gt;

&lt;P&gt;ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/rest_ta/bin/rest.py" Exception performing request: &lt;/P&gt;

&lt;P&gt;The inputs.conf is looking like this:&lt;/P&gt;

&lt;P&gt;[rest://instagram_xxxxx]&lt;BR /&gt;
auth_type = oauth2&lt;BR /&gt;
backoff_time = 10&lt;BR /&gt;
endpoint = &lt;A href="https://api.instagram.com/v1/users/xxxxx/media/recent" target="_blank"&gt;https://api.instagram.com/v1/users/xxxxx/media/recent&lt;/A&gt;&lt;BR /&gt;
http_method = GET&lt;BR /&gt;
http_proxy = &lt;A href="http://xxxxx" target="_blank"&gt;http://xxxxx&lt;/A&gt;&lt;BR /&gt;
https_proxy = &lt;A href="http://xxxxx" target="_blank"&gt;http://xxxxx&lt;/A&gt;&lt;BR /&gt;
index = instagram&lt;BR /&gt;
index_error_response_codes = 1&lt;BR /&gt;
oauth2_access_token = xxxxx&lt;BR /&gt;
oauth2_client_id = xxxxx&lt;BR /&gt;
oauth2_client_secret = xxxxx&lt;BR /&gt;
polling_interval = 60&lt;BR /&gt;
response_handler = InstagramUserFeedEventHandler&lt;BR /&gt;
response_type = json&lt;BR /&gt;
streaming_request = 0&lt;BR /&gt;
url_args = min_id=xxxxx,access_token=xxxxx,min_timestamp=0&lt;BR /&gt;
sourcetype = _json&lt;BR /&gt;
sequential_mode = 0&lt;BR /&gt;
request_timeout = 30&lt;/P&gt;

&lt;P&gt;I increased the logging level inside the rest.py to DEBUG and also for Splunk itself, but without any additional information that can help us.&lt;BR /&gt;
I tried this with the rest_ta 1.3.6 delivered within the instagram app from Splunkbase and version 1.4. Same behavior. We are running this on a Splunk 6.5.3 installed on a SUSE Linux Enterprise Server 12 SP2 (x86_64).&lt;/P&gt;

&lt;P&gt;Please, can someone help us with this issue?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310628#M58360</guid>
      <dc:creator>swaro_ck</dc:creator>
      <dc:date>2020-09-29T17:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Modular Input: Exception performing request:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310629#M58361</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;The app comes with the rest_ta preconfigured. If you want to upgrade to the latest version of the rest_ta (or just download manually from Splunkbase) you need to merge the files "rest-ta/bin/responsehandlers.py" which contains the custom Instagram responsehandler (InstagramUserFeedEventHandler) that I wrote for this input. Can you check to make sure that you have that piece of Instagram specific code I wrote in your app? &lt;/P&gt;

&lt;P&gt;For generic troubleshooting of the rest TA I regularly use this search: &lt;/P&gt;

&lt;P&gt;index=_* rest sourcetype=splunkd  component!=SearchParser| table _time component log_level message&lt;/P&gt;

&lt;P&gt;Let me know how you get along.&lt;/P&gt;

&lt;P&gt;j&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:51:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310629#M58361</guid>
      <dc:creator>jbjerke_splunk</dc:creator>
      <dc:date>2020-09-29T17:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Modular Input: Exception performing request:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310630#M58362</link>
      <description>&lt;P&gt;Hi Johan,&lt;/P&gt;

&lt;P&gt;I followed the documentation and added all the specific code for Instagram to the current release of rest_ta(responsehandlers.py). But I got the same errors. Thats the output from the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "2018-02-07T13:33:59.616+0100",ExecProcessor,ERROR,"message from ""python /opt/splunk/etc/apps/rest_ta/bin/rest.py"" Exception performing request:"
 "2018-02-07T13:33:57.074+0100",ExecProcessor,ERROR,"message from ""python /opt/splunk/etc/apps/rest_ta/bin/rest.py"" Exception performing request:"
 "2018-02-07T13:33:54.524+0100",ExecProcessor,ERROR,"message from ""python /opt/splunk/etc/apps/rest_ta/bin/rest.py"" Exception performing request:"
 "2018-02-07T13:33:52.176+0100",ExecProcessor,ERROR,"message from ""python /opt/splunk/etc/apps/rest_ta/bin/rest.py"" Exception performing request:"
 "2018-02-07T13:33:16.676+0100",Metrics,INFO,"group=per_source_thruput, series=""rest://instagram_tags_xxx1"", kbps=2.293122, eps=1.307874, kb=70.132812, ev=40, avg_age=0.000000, max_age=0"
 "2018-02-07T13:33:16.676+0100",Metrics,INFO,"group=per_source_thruput, series=""rest://instagram_tags_xxx2"", kbps=2.293122, eps=1.307874, kb=70.132812, ev=40, avg_age=436236.250000, max_age=1734051"
 "2018-02-07T13:33:16.676+0100",Metrics,INFO,"group=per_source_thruput, series=""rest://instagram_tags_xxx3"", kbps=2.293122, eps=1.307874, kb=70.132812, ev=40, avg_age=0.000000, max_age=0"
 "2018-02-07T13:33:16.676+0100",Metrics,INFO,"group=per_source_thruput, series=""rest://instagram_xxx4"", kbps=2.293122, eps=1.307874, kb=70.132812, ev=40, avg_age=436233.750000, max_age=1734046"
 "2018-02-07T13:32:58.799+0100",ExecProcessor,INFO,"message from ""python /opt/splunk/etc/apps/rest_ta/bin/rest.py"" Starting new HTTPS connection (1): api.instagram.com"
 "2018-02-07T13:32:56.306+0100",ExecProcessor,INFO,"message from ""python /opt/splunk/etc/apps/rest_ta/bin/rest.py"" Starting new HTTPS connection (1): api.instagram.com"
 "2018-02-07T13:32:53.803+0100",ExecProcessor,INFO,"message from ""python /opt/splunk/etc/apps/rest_ta/bin/rest.py"" Starting new HTTPS connection (1): api.instagram.com"
 "2018-02-07T13:32:51.270+0100",ExecProcessor,INFO,"message from ""python /opt/splunk/etc/apps/rest_ta/bin/rest.py"" Starting new HTTPS connection (1): api.instagram.com"
 "2018-02-07T13:32:46.306+0100",loader,INFO,"Limiting REST HTTP server to 1269 threads"
 "2018-02-07T13:32:46.306+0100",loader,INFO,"Limiting REST HTTP server to 21333 sockets"
 "2018-02-07T13:32:46.121+0100",ExecProcessor,INFO,"New scheduled exec process: python /opt/splunk/etc/apps/rest_ta/bin/rest.py"
 "2018-02-07T13:32:46.121+0100",ExecProcessor,INFO,"New scheduled exec process: python /opt/splunk/etc/apps/rest_ta/bin/rest.py"
 "2018-02-07T13:32:46.121+0100",ExecProcessor,INFO,"New scheduled exec process: python /opt/splunk/etc/apps/rest_ta/bin/rest.py"
 "2018-02-07T13:32:46.121+0100",ExecProcessor,INFO,"New scheduled exec process: python /opt/splunk/etc/apps/rest_ta/bin/rest.py"
 "2018-02-07T13:32:46.060+0100",ModularInputs,INFO,"Introspection setup completed for scheme ""rest""."
 "2018-02-07T13:32:45.856+0100",SpecFiles,INFO,"Found external scheme definition for stanza ""rest://"" with 36 parameters: endpoint, http_method, request_payload, auth_type, auth_user, auth_password, oauth1_client_key, oauth1_client_secret, oauth1_access_token, oauth1_access_token_secret, oauth2_token_type, oauth2_access_token, oauth2_refresh_token, oauth2_refresh_url, oauth2_refresh_props, oauth2_client_id, oauth2_client_secret, http_header_propertys, url_args, response_type, streaming_request, http_proxy, https_proxy, request_timeout, backoff_time, polling_interval, sequential_mode, sequential_stagger_time, index_error_response_codes, response_handler, response_handler_args, response_filter_pattern, custom_auth_handler, custom_auth_handler_args, delimiter, cookies"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kind regards,&lt;BR /&gt;
Christian&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 15:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310630#M58362</guid>
      <dc:creator>swaro_ck</dc:creator>
      <dc:date>2018-02-07T15:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Modular Input: Exception performing request:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310631#M58363</link>
      <description>&lt;P&gt;No one an idea what's wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 05:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310631#M58363</guid>
      <dc:creator>swaro_ck</dc:creator>
      <dc:date>2018-02-08T05:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Modular Input: Exception performing request:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310632#M58364</link>
      <description>&lt;P&gt;Hello. Did you fix it? I have the same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 13:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310632#M58364</guid>
      <dc:creator>mf_download</dc:creator>
      <dc:date>2019-04-10T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API Modular Input: Exception performing request:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310633#M58365</link>
      <description>&lt;P&gt;Hi, we stopped all activities within downloading instagram data, sorry.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 13:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rest-API-Modular-Input-Exception-performing-request/m-p/310633#M58365</guid>
      <dc:creator>swaro_ck</dc:creator>
      <dc:date>2019-04-10T13:48:35Z</dc:date>
    </item>
  </channel>
</rss>

