<?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 Log entry to Splunk using python in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Log-entry-to-Splunk-using-python/m-p/439875#M7967</link>
    <description>&lt;P&gt;I was able to write a python code using requests to post data in Splunk&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;import requests
url='SPLUNK_URL'
Header = {'Authorization': 'Splunk '+'1234567'}
json = {"index":"xxx_yyy", "event": { 'message' : "Value" } }
r = requests.post(url, headers=Header, json, verify=False)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But sometimes get this error ConnectionError: ('Connection aborted.', OSError("(10054, 'WSAECONNRESET')")).&lt;/P&gt;
&lt;P&gt;Is there any way to avoid this error ?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 22:36:51 GMT</pubDate>
    <dc:creator>sapta6191</dc:creator>
    <dc:date>2020-06-17T22:36:51Z</dc:date>
    <item>
      <title>Log entry to Splunk using python</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Log-entry-to-Splunk-using-python/m-p/439875#M7967</link>
      <description>&lt;P&gt;I was able to write a python code using requests to post data in Splunk&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;import requests
url='SPLUNK_URL'
Header = {'Authorization': 'Splunk '+'1234567'}
json = {"index":"xxx_yyy", "event": { 'message' : "Value" } }
r = requests.post(url, headers=Header, json, verify=False)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But sometimes get this error ConnectionError: ('Connection aborted.', OSError("(10054, 'WSAECONNRESET')")).&lt;/P&gt;
&lt;P&gt;Is there any way to avoid this error ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 22:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Log-entry-to-Splunk-using-python/m-p/439875#M7967</guid>
      <dc:creator>sapta6191</dc:creator>
      <dc:date>2020-06-17T22:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Log entry to Splunk using python</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Log-entry-to-Splunk-using-python/m-p/542242#M7968</link>
      <description>&lt;P&gt;Same problem here .. looks like a performance problem on the forwarder&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 19:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Log-entry-to-Splunk-using-python/m-p/542242#M7968</guid>
      <dc:creator>jimjace</dc:creator>
      <dc:date>2021-03-03T19:10:21Z</dc:date>
    </item>
  </channel>
</rss>

