<?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: Adding proxy support for Splunk Add-on for Salesforce Streaming API (TA-sfdc-streaming-api) in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Adding-proxy-support-for-Splunk-Add-on-for-Salesforce-Streaming/m-p/681244#M80378</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/69859"&gt;@mik3y&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the update and the workaround solution.&lt;BR /&gt;&lt;BR /&gt;In the end we moved away from this solution anyway as the Salesforce streaming API did not provide ability to track the events that had already been ingested, potentially resulting in missed data during Splunk maintenance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 20:00:53 GMT</pubDate>
    <dc:creator>yeahnah</dc:creator>
    <dc:date>2024-03-19T20:00:53Z</dc:date>
    <item>
      <title>Adding proxy support for Splunk Add-on for Salesforce Streaming API (TA-sfdc-streaming-api)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Adding-proxy-support-for-Splunk-Add-on-for-Salesforce-Streaming/m-p/639711#M78891</link>
      <description>&lt;P&gt;Hi Splunk Works&lt;BR /&gt;&lt;BR /&gt;We're investigating using the&amp;nbsp;Splunk Add-on for Salesforce Streaming API (TA-sfdc-streaming-api) app (v1.0.5 - &lt;A href="https://splunkbase.splunk.com/app/5689" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/5689&lt;/A&gt;) .&lt;BR /&gt;&lt;BR /&gt;I see it does not currently have proxy configuration support in the app.&amp;nbsp; &amp;nbsp;The business does not want to configure the whole Splunk instance to be proxy enabled and would like to limit it to app configuration.&lt;BR /&gt;&lt;BR /&gt;Are there any plans to add this support in the near future?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 23:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Adding-proxy-support-for-Splunk-Add-on-for-Salesforce-Streaming/m-p/639711#M78891</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-04-12T23:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding proxy support for Splunk Add-on for Salesforce Streaming API (TA-sfdc-streaming-api)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Adding-proxy-support-for-Splunk-Add-on-for-Salesforce-Streaming/m-p/681122#M80371</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158935"&gt;@yeahnah&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of our salesforce security guys found a workaround that involves modifying a few python scripts under the lib folder.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are two methods, long polling and web sockets. Long polling was applicable to us so we just fixed that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Some information on the usage of proxy settings in aiohttp can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support" target="_blank" rel="noopener"&gt;Advanced Client Usage — aiohttp 3.9.3 documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The fixes can be applied to the TA-sfdc-streaming-api pack and below is what we modified to successfully subscribe via a proxy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Modify /opt/splunk/etc/apps/TA-sfdc-streaming-api/lib/aiocometd/transports/long_polling.py&lt;/P&gt;&lt;P&gt;search for one instance of "session.post" and add&amp;nbsp; ,proxy="http://&amp;lt;proxyip&amp;gt;:&amp;lt;port&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="long_polling.png" style="width: 876px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29790i4BB31A849000D0B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="long_polling.png" alt="long_polling.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Modify /opt/splunk/etc/apps/TA-sfdc-streaming-api/lib/aiosfstream/auth.py&lt;/P&gt;&lt;P&gt;search for two instances of "session.post" and add ,proxy="http://&amp;lt;proxyip&amp;gt;:&amp;lt;port&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="auth.png" style="width: 895px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29791i13FDEF26458E4321/image-size/large?v=v2&amp;amp;px=999" role="button" title="auth.png" alt="auth.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 05:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Adding-proxy-support-for-Splunk-Add-on-for-Salesforce-Streaming/m-p/681122#M80371</guid>
      <dc:creator>mik3y</dc:creator>
      <dc:date>2024-03-19T05:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding proxy support for Splunk Add-on for Salesforce Streaming API (TA-sfdc-streaming-api)</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Adding-proxy-support-for-Splunk-Add-on-for-Salesforce-Streaming/m-p/681244#M80378</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/69859"&gt;@mik3y&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the update and the workaround solution.&lt;BR /&gt;&lt;BR /&gt;In the end we moved away from this solution anyway as the Salesforce streaming API did not provide ability to track the events that had already been ingested, potentially resulting in missed data during Splunk maintenance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 20:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Adding-proxy-support-for-Splunk-Add-on-for-Salesforce-Streaming/m-p/681244#M80378</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2024-03-19T20:00:53Z</dc:date>
    </item>
  </channel>
</rss>

