<?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: collectd reports &amp;quot;write_http plugin: curl_easy_perform failed with status 56: Recv failure: Connection reset by in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505188#M86084</link>
    <description>Thanks, Michael. Commenting-out write_http made the error message go away, but I'm still not getting any metric data.</description>
    <pubDate>Fri, 19 Jun 2020 13:14:59 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-06-19T13:14:59Z</dc:date>
    <item>
      <title>collectd reports "write_http plugin: curl_easy_perform failed with status 56: Recv failure: Connection reset by peer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505093#M86055</link>
      <description>&lt;P&gt;I realize this may be more of a Linux problem than a Splunk problem, but I'm using code specifically for Splunk so perhaps someone here can help.&lt;/P&gt;&lt;P&gt;I compiled and installed collectd using the instructions at &lt;A href="https://docs.splunk.com/Documentation/InfraApp/latest/Admin/ManageAgents" target="_blank"&gt;https://docs.splunk.com/Documentation/InfraApp/latest/Admin/ManageAgents&lt;/A&gt;.&amp;nbsp; I have an HEC configured on my Splunk instance and can write to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k https://1.2.3.4:8088/services/collector/raw -d "Testing"
{"text":"Token is required","code":2}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I know I need a token in the curl command, but this at least demonstrates connectivity.&lt;/P&gt;&lt;P&gt;I've configured the write_http and write_splunk plugins correctly, I believe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Plugin write_http&amp;gt;
        &amp;lt;Node "example"&amp;gt;
                URL "http://1.2.3.4:8088/services/collector/raw"
                VerifyPeer false
                VerifyHost false
                Header "Header: Authorization: Splunk &amp;lt;redacted&amp;gt;"
                Format "JSON"
                Metrics true
                StoreRates true
        &amp;lt;/Node&amp;gt;
&amp;lt;/Plugin&amp;gt;

&amp;lt;Plugin write_splunk&amp;gt;
        server "1.2.3.4"
        port "8088"
        token "&amp;lt;redacted&amp;gt;"
        ssl true
        verifyssl false
&amp;lt;/Plugin&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As soon as collect starts it logs "write_http plugin: curl_easy_perform failed with status 56: Recv failure: Connection reset by peer" and does so repeatedly.&amp;nbsp; No metrics are indexed by Splunk.&lt;/P&gt;&lt;P&gt;How do I fix this?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 21:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505093#M86055</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-18T21:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: collectd reports "write_http plugin: curl_easy_perform failed with status 56: Recv failure: Connection reset by</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505110#M86064</link>
      <description>&lt;P&gt;Howdy Rich,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last time I did SAI, I replaced write_http with the items in write_splunk. So my conf didn't have any reference to write_http.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;My conf has no record of write_http.&amp;nbsp; Save off a copy of your config and try one without write_http?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From my notes:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;LoadPlugin "write_splunk"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;FlushInterval 30&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;/LoadPlugin&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;Plugin write_splunk&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;server “10.1.2.3”&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;port "8088"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;token "&amp;lt;redacted&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;ssl true&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;verifyssl false&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Dimension "entity_type:nix_host"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Dimension "role:webserver"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Dimension "InstanceId:i-whatevs"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&amp;lt;/Plugin&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 00:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505110#M86064</guid>
      <dc:creator>The_Simko</dc:creator>
      <dc:date>2020-06-19T00:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: collectd reports "write_http plugin: curl_easy_perform failed with status 56: Recv failure: Connection reset by</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505188#M86084</link>
      <description>Thanks, Michael. Commenting-out write_http made the error message go away, but I'm still not getting any metric data.</description>
      <pubDate>Fri, 19 Jun 2020 13:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505188#M86084</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-19T13:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: collectd reports "write_http plugin: curl_easy_perform failed with status 56: Recv failure: Connection reset by</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505227#M86090</link>
      <description>&lt;P&gt;I enabled debug logging and see the following.&amp;nbsp; I looks like collectd is *trying* to write to splunk, but there appears to be nothing that suggests a failure to send.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[2020-06-19 17:06:57] [debug] plugin_dispatch_values: time = 1592586417.042; interval = 60.000; host = example; plugin = memory; plugin_instance = ; type = percent; type_instance = slab_recl;
[2020-06-19 17:06:57] [debug] uc_insert: Added example/memory/memory-slab_recl to the cache.
[2020-06-19 17:06:57] [debug] plugin: plugin_write: Writing values via write_splunk.
[2020-06-19 17:06:57] [debug] plugin: plugin_write: Writing values via network.
[2020-06-19 17:06:57] [debug] uc_insert: Added example/memory/percent-slab_recl to the cache.
[2020-06-19 17:06:57] [debug] plugin: plugin_write: Writing values via write_splunk.
[2020-06-19 17:06:57] [debug] plugin: plugin_write: Writing values via network.
[2020-06-19 17:07:07] [debug] plugin_read_thread: Handling `flush/write_splunk'.
[2020-06-19 17:07:07] [debug] plugin_read_thread: read-function of the `flush/write_splunk' plugin took 0.000004 seconds.
[2020-06-19 17:07:07] [debug] plugin_read_thread: Effective interval of the `flush/write_splunk' plugin is 10.000 seconds.
[2020-06-19 17:07:07] [debug] plugin_read_thread: Next read of the `flush/write_splunk' plugin at 1592586437.039.&lt;/LI-CODE&gt;&lt;P&gt;Found this in splunkd.log, which appears to be significant.&amp;nbsp; Not sure what to do about it since write_splunk should be sending the events in JSON format. It could, of course, be unrelated to my problem.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;06-19-2020 17:15:17.054 +0000 ERROR MetricsProcessor - Failed to parse metrics input, most likely due to incorrect protocol JSON exception caught while processing collectd event: Unexpected character while looking for value: 'm'
06-19-2020 17:15:17.054 +0000 ERROR MetricsProcessor - JSON exception caught while processing collectd event: Unexpected character while looking for value: 'm'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 17:18:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/505227#M86090</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-19T17:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: collectd reports "write_http plugin: curl_easy_perform failed with status 56: Recv failure: Connection reset by</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/507120#M86297</link>
      <description>&lt;P&gt;I second this question.&lt;/P&gt;&lt;P&gt;I'm getting the same&amp;nbsp; error:&lt;/P&gt;&lt;PRE&gt;RROR MetricsProcessor - JSON exception caught while processing collectd event: Unexpected character while looking for value: 'm'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way I've been able to make this disappear is to use the write_http plugin, but this breaks the SAI dashboard stats. Anyone have a solution to this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 17:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/collectd-reports-quot-write-http-plugin-curl-easy-perform-failed/m-p/507120#M86297</guid>
      <dc:creator>sh1pit76</dc:creator>
      <dc:date>2020-07-02T17:41:10Z</dc:date>
    </item>
  </channel>
</rss>

