All Apps and Add-ons

Collectd Error After Install - curl_easy_perform status 35

dperre_splunk
Splunk Employee
Splunk Employee

Hi there,

I have used the script that is contained within the Splunk app for infrastructure and couldnt see the entities populating. After I went to the troubleshooting page located here and looked in the collectd.log I noticed the following error. How can I fix this?

[machine]# tail -f /etc/collectd/collectd.log
[2018-07-13 18:36:52] [error] write splunk plugin: curl_easy_perform failed with status 35
[2018-07-13 18:37:02] [error] write splunk plugin: curl_easy_perform failed with status 35
[2018-07-13 18:37:12] [error] write splunk plugin: curl_easy_perform failed with status 35

abrown_splunk
Splunk Employee
Splunk Employee

Thanks for the feedback Mickey - I'll see what the engineers think about this one too.

0 Karma

dperre_splunk
Splunk Employee
Splunk Employee

Hi back at you :).

Proper Fix
In my situation the problem was with my configuration of HEC .
Under Data Inputs >> HTTP Event Collector >> Global Settings
I needed to enable SSL.

Workaround
If I wanted to not have SSL (bad practice) I would need to update my collectd settings under /etc/collectd.conf like below.

##############################################################################
# Customization for Splunk                                                   #
#----------------------------------------------------------------------------#
# This plugin sends all metrics data from other plugins to Splunk via HEC.   #
##############################################################################

<Plugin write_splunk>
           server "192.168.X.X"
           port "8088"
           token "HECTOKEN"
           ssl true
           verifyssl false
</Plugin>

To

##############################################################################
# Customization for Splunk                                                   #
#----------------------------------------------------------------------------#
# This plugin sends all metrics data from other plugins to Splunk via HEC.   #
##############################################################################

<Plugin write_splunk>
           server "192.168.X.X"
           port "8088"
           token "HECTOKEN"
           ssl false
           verifyssl false
</Plugin>
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...