<?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 Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server' in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563481#M100375</link>
    <description>&lt;P&gt;I am trying to run the splunk connect syslog via podman, here is the reference links -&lt;BR /&gt;&lt;A href="https://splunk-connect-for-syslog.readthedocs.io/en/latest/gettingstarted/#offline-container-installation" target="_blank" rel="nofollow noopener"&gt;https://splunk-connect-for-syslog.readthedocs.io/en/latest/gettingstarted/#offline-container-installation&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://splunk-connect-for-syslog.readthedocs.io/en/latest/gettingstarted/podman-systemd-general/" target="_blank" rel="nofollow noopener"&gt;https://splunk-connect-for-syslog.readthedocs.io/en/latest/gettingstarted/podman-systemd-general/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My podman container is up and running, all the configuration on place as per doc instructions - But I am facing a issue related to sending logs HTTP request. Below is my configuration file and activity logs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My env_file&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="snippet-clipboard-content position-relative"&gt;&lt;PRE&gt;[root@hostname ~]# cat /opt/sc4s/env_file
SPLUNK_HEC_URL=https://http-singh-sudhir.splunkcloud.com:443
SPLUNK_HEC_TOKEN=Z93TSS87-F826-19V1-01W1-Q9Q8G1G8264
#Uncomment the following line if using untrusted SSL certificates
#SC4S_DEST_SPLUNK_HEC_DEFAULT_TLS_VERIFY=no
SC4S_DEST_SPLUNK_HEC_DEFAULT_DISKBUFF_DIR=/opt/sc4s/storage/volumes&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using above config the manual curl command is successful&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="snippet-clipboard-content position-relative"&gt;&lt;PRE&gt;[root@hostname ~]# curl -k https://http-singh-sudhir.splunkcloud.com:443/services/collector/event?channel=Q9Q8G1W5-Z93T-F826-19V1-Q9Q8G1G8264 -H "Authorization: Splunk Z93TSS87-F826-19V1-01W1-Q9Q8G1G8264 " -d '{"event": "hello_world"}'
{"text":"Success","code":0}[root@hostname ~]# ^C&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But with same config, podman logs SC4S is throwing error&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="snippet-clipboard-content position-relative"&gt;&lt;PRE&gt;[root@hostname ~]# /usr/bin/podman logs SC4S
'/opt/syslog-ng/etc/conf.d/local/context/compliance_meta_by_source.conf.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/compliance_meta_by_source.conf'
'/opt/syslog-ng/etc/conf.d/local/context/compliance_meta_by_source.csv.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/compliance_meta_by_source.csv'
'/opt/syslog-ng/etc/conf.d/local/context/splunk_index.csv.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/splunk_index.csv'
'/opt/syslog-ng/etc/conf.d/local/context/vendor_product_by_source.conf.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/vendor_product_by_source.conf'
'/opt/syslog-ng/etc/conf.d/local/context/vendor_product_by_source.csv.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/vendor_product_by_source.csv'
'/opt/syslog-ng/etc/local_config/destinations/README.md' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/destinations/README.md'
'/opt/syslog-ng/etc/local_config/filters/README.md' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/filters/README.md'
'/opt/syslog-ng/etc/local_config/filters/example.conf' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/filters/example.conf'
'/opt/syslog-ng/etc/local_config/log_paths/README.md' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/log_paths/README.md'
'/opt/syslog-ng/etc/local_config/log_paths/lp-example.conf.tmpl' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/log_paths/lp-example.conf.tmpl'
'/opt/syslog-ng/etc/local_config/log_paths/lp-example.conf' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/log_paths/lp-example.conf'
'/opt/syslog-ng/etc/local_config/sources/README.md' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/sources/README.md'
syslog-ng checking config
sc4s version=v1.12.0
syslog-ng starting
Aug 16 11:44:12 hostname syslog-ng[1]: syslog-ng starting up; version='3.25.1'
Aug 16 11:44:12 hostname syslog-ng-config: sc4s version=v1.12.0
Aug 16 11:44:12 hostname syslog-ng[1]: &lt;STRONG&gt;curl: error sending HTTP request; url='https://http-singh-sudhir.splunkcloud.com:443/services/collector/event', error='Couldn\'t connect to server&lt;/STRONG&gt;', worker_index='1', driver='d_hec_internal#0', location='/opt/syslog-ng/etc/conf.d/destinations/splunk_hec_internal.conf:2:5'
Aug 16 11:44:12 hostname syslog-ng[1]:&lt;STRONG&gt; Server disconnected while preparing messages for sending, trying again&lt;/STRONG&gt;; driver='d_hec_internal#0', location='/opt/syslog-ng/etc/conf.d/destinations/splunk_hec_internal.conf:2:5', worker_index='1', time_reopen='10', batch_size='1'
Aug 16 11:44:12 hostname syslog-ng[1]: curl: error sending HTTP request; url='https://http-singh-sudhir.splunkcloud.com:443/services/collector/event', error='Couldn\'t connect to server', worker_index='0', driver='d_hec_internal#0', location='/opt/syslog-ng/etc/conf.d/destinations/splunk_hec_internal.conf:2:5'
Aug 16 11:44:12 hostname syslog-ng[1]: Server disconnected while preparing messages for sending, trying again; driver='d_hec_internal#0', location='/opt/syslog-ng/etc/conf.d/destinations/splunk_hec_internal.conf:2:5', worker_index='0', time_reopen='10', batch_size='1'

&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;I am not able to understand what is missing here from my side. if is curl fails then it should be in both cases, looking forward to your help. please point out what is wrong with this.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 13:29:02 GMT</pubDate>
    <dc:creator>sutom</dc:creator>
    <dc:date>2021-08-16T13:29:02Z</dc:date>
    <item>
      <title>Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563481#M100375</link>
      <description>&lt;P&gt;I am trying to run the splunk connect syslog via podman, here is the reference links -&lt;BR /&gt;&lt;A href="https://splunk-connect-for-syslog.readthedocs.io/en/latest/gettingstarted/#offline-container-installation" target="_blank" rel="nofollow noopener"&gt;https://splunk-connect-for-syslog.readthedocs.io/en/latest/gettingstarted/#offline-container-installation&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://splunk-connect-for-syslog.readthedocs.io/en/latest/gettingstarted/podman-systemd-general/" target="_blank" rel="nofollow noopener"&gt;https://splunk-connect-for-syslog.readthedocs.io/en/latest/gettingstarted/podman-systemd-general/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My podman container is up and running, all the configuration on place as per doc instructions - But I am facing a issue related to sending logs HTTP request. Below is my configuration file and activity logs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My env_file&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="snippet-clipboard-content position-relative"&gt;&lt;PRE&gt;[root@hostname ~]# cat /opt/sc4s/env_file
SPLUNK_HEC_URL=https://http-singh-sudhir.splunkcloud.com:443
SPLUNK_HEC_TOKEN=Z93TSS87-F826-19V1-01W1-Q9Q8G1G8264
#Uncomment the following line if using untrusted SSL certificates
#SC4S_DEST_SPLUNK_HEC_DEFAULT_TLS_VERIFY=no
SC4S_DEST_SPLUNK_HEC_DEFAULT_DISKBUFF_DIR=/opt/sc4s/storage/volumes&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using above config the manual curl command is successful&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="snippet-clipboard-content position-relative"&gt;&lt;PRE&gt;[root@hostname ~]# curl -k https://http-singh-sudhir.splunkcloud.com:443/services/collector/event?channel=Q9Q8G1W5-Z93T-F826-19V1-Q9Q8G1G8264 -H "Authorization: Splunk Z93TSS87-F826-19V1-01W1-Q9Q8G1G8264 " -d '{"event": "hello_world"}'
{"text":"Success","code":0}[root@hostname ~]# ^C&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But with same config, podman logs SC4S is throwing error&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="snippet-clipboard-content position-relative"&gt;&lt;PRE&gt;[root@hostname ~]# /usr/bin/podman logs SC4S
'/opt/syslog-ng/etc/conf.d/local/context/compliance_meta_by_source.conf.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/compliance_meta_by_source.conf'
'/opt/syslog-ng/etc/conf.d/local/context/compliance_meta_by_source.csv.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/compliance_meta_by_source.csv'
'/opt/syslog-ng/etc/conf.d/local/context/splunk_index.csv.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/splunk_index.csv'
'/opt/syslog-ng/etc/conf.d/local/context/vendor_product_by_source.conf.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/vendor_product_by_source.conf'
'/opt/syslog-ng/etc/conf.d/local/context/vendor_product_by_source.csv.example' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/context/vendor_product_by_source.csv'
'/opt/syslog-ng/etc/local_config/destinations/README.md' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/destinations/README.md'
'/opt/syslog-ng/etc/local_config/filters/README.md' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/filters/README.md'
'/opt/syslog-ng/etc/local_config/filters/example.conf' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/filters/example.conf'
'/opt/syslog-ng/etc/local_config/log_paths/README.md' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/log_paths/README.md'
'/opt/syslog-ng/etc/local_config/log_paths/lp-example.conf.tmpl' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/log_paths/lp-example.conf.tmpl'
'/opt/syslog-ng/etc/local_config/log_paths/lp-example.conf' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/log_paths/lp-example.conf'
'/opt/syslog-ng/etc/local_config/sources/README.md' -&amp;gt; '/opt/syslog-ng/etc/conf.d/local/config/sources/README.md'
syslog-ng checking config
sc4s version=v1.12.0
syslog-ng starting
Aug 16 11:44:12 hostname syslog-ng[1]: syslog-ng starting up; version='3.25.1'
Aug 16 11:44:12 hostname syslog-ng-config: sc4s version=v1.12.0
Aug 16 11:44:12 hostname syslog-ng[1]: &lt;STRONG&gt;curl: error sending HTTP request; url='https://http-singh-sudhir.splunkcloud.com:443/services/collector/event', error='Couldn\'t connect to server&lt;/STRONG&gt;', worker_index='1', driver='d_hec_internal#0', location='/opt/syslog-ng/etc/conf.d/destinations/splunk_hec_internal.conf:2:5'
Aug 16 11:44:12 hostname syslog-ng[1]:&lt;STRONG&gt; Server disconnected while preparing messages for sending, trying again&lt;/STRONG&gt;; driver='d_hec_internal#0', location='/opt/syslog-ng/etc/conf.d/destinations/splunk_hec_internal.conf:2:5', worker_index='1', time_reopen='10', batch_size='1'
Aug 16 11:44:12 hostname syslog-ng[1]: curl: error sending HTTP request; url='https://http-singh-sudhir.splunkcloud.com:443/services/collector/event', error='Couldn\'t connect to server', worker_index='0', driver='d_hec_internal#0', location='/opt/syslog-ng/etc/conf.d/destinations/splunk_hec_internal.conf:2:5'
Aug 16 11:44:12 hostname syslog-ng[1]: Server disconnected while preparing messages for sending, trying again; driver='d_hec_internal#0', location='/opt/syslog-ng/etc/conf.d/destinations/splunk_hec_internal.conf:2:5', worker_index='0', time_reopen='10', batch_size='1'

&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;I am not able to understand what is missing here from my side. if is curl fails then it should be in both cases, looking forward to your help. please point out what is wrong with this.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 13:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563481#M100375</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-16T13:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563488#M100376</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like you are using very old version of SC4S, please use latest version.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 14:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563488#M100376</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2021-08-16T14:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563502#M100379</link>
      <description>&lt;P&gt;Thanks for the hit &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163905"&gt;@harsmarvania57&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per suggestion I have updated the version and also manage the config according to new version, but again I am getting same kind of error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;update env_file&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@hostname ~]# cat /opt/sc4s/env_file
SC4S_DEST_SPLUNK_HEC_DEFAULT_URL=https://http-singh-sudhir.splunkcloud.com:443
SC4S_DEST_SPLUNK_HEC_DEFAULT_TOKEN=Z93TSS87-F826-19V1-01W1-Q9Q8G1G8264
#Uncomment the following line if using untrusted SSL certificates
#SC4S_DEST_SPLUNK_HEC_DEFAULT_TLS_VERIFY=no
SC4S_DEST_GLOBAL_ALTERNATES=d_hec_debug&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;podman logs SC4S&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@hostname sc4s]# podman logs SC4S
curl: (7) Failed to connect to http-singh-sudhir.splunkcloud.com port 443: Connection timed out
SC4S_ENV_CHECK_HEC: Invalid Splunk HEC URL, invalid token, or other HEC connectivity issue index=main. sourcetype=sc4s:fallback
Startup will continue to prevent data loss if this is a transient failure.

syslog-ng checking config
sc4s version=1.86.4
starting goss
starting syslog-ng
Aug 16 16:07:35.327 hostname syslog-ng[166]: syslog-ng starting up; version='3.32.1'
Aug 16 16:07:36.700 hostname syslog-ng[166]: curl: error sending HTTP request; url='http-singh-sudhir.splunkcloud.com:443/services/collector/event', error='Couldn\'t connect to server', worker_index='2', driver='d_hec_fmt#0', location='root generator dest_hec:5:5'
Aug 16 16:07:36.700 hostname syslog-ng[166]: curl: error sending HTTP request; url='http-singh-sudhir.splunkcloud.com:443/services/collector/event', error='Couldn\'t connect to server', worker_index='3', driver='d_hec_fmt#0', location='root generator dest_hec:5:5'
Aug 16 16:07:36.700 hostname syslog-ng[166]: Server disconnected while preparing messages for sending, trying again; driver='d_hec_fmt#0', location='root generator dest_hec:5:5', worker_index='2', time_reopen='10', batch_size='198'
Aug 16 16:07:36.700 hostname syslog-ng[166]: Server disconnected while preparing messages for sending, trying again; driver='d_hec_fmt#0', location='root generator dest_hec:5:5', worker_index='3', time_reopen='10', batch_size='198'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log from Debug file&lt;/STRONG&gt; -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@hostname sc4s_events]# cat 2021-08-16-hec.log
curl -k -u "sc4s HEC debug:$SC4S_DEST_SPLUNK_HEC_DEFAULT_TOKEN" "https://http-singh-sudhir.splunkcloud.com:443/services/collector/event" -d '{"time":"1629130055.327","sourcetype":"sc4s:events","source":"sc4s","index":"main","host":"sudhir4321","fields":{"sc4s_vendor_product":"sc4s_events","sc4s_syslog_facility":"syslog","sc4s_loghost":"sudhir4321","sc4s_container":"sudhir4321"},"event":"2021-08-16T16:07:35.327+00:00 sudhir4321 syslog-ng 166 - [meta sequenceId=\"1\"] syslog-ng starting up; version='3.32.1'"}'
curl -k -u "sc4s HEC debug:$SC4S_DEST_SPLUNK_HEC_DEFAULT_TOKEN" "https://http-singh-sudhir.splunkcloud.com:443/services/collector/event" -d '{"time":"1629130056.401","sourcetype":"sc4s:events:startup:out","source":"sc4s","index":"main","host":"sudhir4321","fields":{"sc4s_vendor_product":"sc4s_events","sc4s_syslog_facility":"user","sc4s_loghost":"sudhir4321","sc4s_container":"sudhir4321"},"event":"syslog-ng-config: sc4s version=1.86.4"}'
curl -k -u "sc4s HEC debug:$SC4S_DEST_SPLUNK_HEC_DEFAULT_TOKEN" "https://http-singh-sudhir.splunkcloud.com:443/services/collector/event" -d '{"time":"1629130056.700","sourcetype":"sc4s:events","source":"sc4s","index":"main","host":"sudhir4321","fields":{"sc4s_vendor_product":"sc4s_events","sc4s_syslog_facility":"syslog","sc4s_loghost":"sudhir4321","sc4s_container":"sudhir4321"},"event":"2021-08-16T16:07:36.700+00:00 sudhir4321 syslog-ng 166 - [meta sequenceId=\"3\"] curl: error sending HTTP request; url='https://http-singh-sudhir.splunkcloud.com:443/services/collector/event', error='Couldn\\'t connect to server', worker_index='2', driver='d_hec_fmt#0', location='root generator dest_hec:5:5'"}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be the issue now, can you please help me to understand.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 17:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563502#M100379</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-16T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563506#M100381</link>
      <description>&lt;P&gt;I don't think your HEC URL is correct if you are targeting a SplunkCloud stack.&lt;/P&gt;&lt;P&gt;It should be&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://http-inputs-&amp;lt;stackname&amp;gt;.splunkcloud.com&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Aug 2021 17:35:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563506#M100381</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-08-16T17:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563507#M100382</link>
      <description>&lt;P&gt;Thanks for response &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199268"&gt;@s2_splunk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have sensitized the URL- my actual URL is-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"https://http-inputs-sudhir.splunkcloud.com:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 17:39:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563507#M100382</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-16T17:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563508#M100383</link>
      <description>&lt;P&gt;Are you saying you modified all the log entries you have posted above to obfuscate the actual HEC endpoint?&lt;/P&gt;&lt;P&gt;If that's the case, I would try to test your Cloud Stacks's HEC functionality with a curl command from that machine:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k  https://http-inputs-&amp;lt;stack&amp;gt;.splunkcloud.com:443/services/collector/event -H "Authorization: Splunk &amp;lt;valid_token&amp;gt;" -d '{"event": "hello world"}'&lt;/LI-CODE&gt;&lt;P&gt;And see if that works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it times out as well, something on your network doesn't allow the outbound connection.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 17:45:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563508#M100383</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-08-16T17:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563512#M100384</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199268"&gt;@s2_splunk&lt;/a&gt;you are right. I have modified the HEC URL.&lt;/P&gt;&lt;P&gt;Here is the curl command response -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@hostname ~]# curl -k  https://http-inputs-sudhir.splunkcloud.com:443/services/collector/event -H "Authorization: Splunk Z93TSS87-F826-19V1-01W1-Q9Q8G1G8264" -d '{"event": "hello world"}'
{"text":"Success","code":0}
[root@hostname ~]#&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output is success but with script is failing&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 09:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563512#M100384</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-17T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563552#M100396</link>
      <description>&lt;P&gt;Sorry, didn't see that you had already tried that.&lt;/P&gt;&lt;P&gt;Do you have any proxy configuration on your server that your podman container may not "see"?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 22:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563552#M100396</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-08-16T22:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563605#M100401</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199268"&gt;@s2_splunk&lt;/a&gt;I have tried the curl command and the output is given above.&lt;/P&gt;&lt;P&gt;Yes, we have a proxy configuration on the server. could you please help me with some hits - like how I can identify which proxy configuration affecting podman container.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 09:15:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563605#M100401</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-17T09:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563684#M100405</link>
      <description>&lt;P&gt;Which version of podman are you running?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 15:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563684#M100405</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-08-17T15:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563689#M100406</link>
      <description>&lt;P&gt;podman -v&lt;BR /&gt;podman version 3.0.2-dev&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 16:38:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563689#M100406</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-17T16:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563696#M100407</link>
      <description>&lt;P&gt;Hmmm, not sure where to go from here. By default, podman should pick up system-wide proxy settings if this is really your issue.&lt;/P&gt;&lt;P&gt;On other thing you could try is to run the image in interactive mode and issue the curl command from within the container to see if that really is your issue.&lt;/P&gt;&lt;P&gt;You could also try explicitly setting your proxy variables in the env_file and see if that changes anything.&lt;/P&gt;&lt;P&gt;If you have a support entitlement, you can open a support case. Maybe others more familiar with podman and/or how to bypass your proxy for the node SC4S runs on have better ideas.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 18:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/563696#M100407</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-08-17T18:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/564929#M100547</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199268"&gt;@s2_splunk&lt;/a&gt;&lt;/P&gt;&lt;P&gt;As you suggested, I tried to run the CURL command in normal mode as well as image interactive mode and it got failed in interactive mode.&lt;/P&gt;&lt;P&gt;Normal mode CURL command -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@hostname ~]# curl -k https://http-inputs-sudhir.splunkcloud.com:443/services/collector -H "Authorization: Splunk Z93TSS87-F826-19V1-01W1-Q9Q8G1G8264" -d '{​"event": "hello_world", "sourcetype":"mysourcetype"}​'
{​"text":"Success","code":0}​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CURL command in image interactive mode - it's timed out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;podman exec -it containerid /bin/sh
sh-4.4# curl -k -v https://http-inputs-sudhir.splunkcloud.com:443/services/collector -H "Authorization: Splunk Z93TSS87-F826-19V1-01W1-Q9Q8G1G8264" -d '{​"event": "hello_world", "sourcetype":"mycontainer"}​'
* Trying 4.54.253.184...
* TCP_NODELAY set
* connect to 4.54.253.184 port 443 failed: Connection timed out
* Trying 4.54.142.7...
* TCP_NODELAY set
^C
sh-4.4# exit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like podman is not picking up system-wide proxy settings, Any suggestion here how I can troubleshoot or force podman for system proxy&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/564929#M100547</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-26T19:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/564950#M100550</link>
      <description>&lt;P&gt;Can you do an nslookup on your splunkcloud.com hostname and confirm that the IP address is the same as the one reported in your connection timeout?&lt;/P&gt;&lt;P&gt;I haven't run across this before. Typically, podman (and docker) should pick up system-wide proxy settings without a problem.&lt;/P&gt;&lt;P&gt;You can try to add the proxy variables to the env_file of your SC4S container. Get the current HTTPS_PROXY environment variable setting from your host and copy/paste into env_file. Restart/Retry.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 22:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/564950#M100550</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-08-26T22:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/565107#M100576</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199268"&gt;@s2_splunk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did nslookup for my splunkcloud.com hostname and got the same IP address as in my connection timeout?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ nslookup http-inputs-sudhir.splunkcloud.com
Non-authoritative answer:
Server:  dns.google
Address:  8.8.8.8
Name:    sudhir-indexers-15287165932.xx-xxxxx-xx.elb.amazonaws.com
Addresses:  4.54.253.184
          4.54.142.7
Aliases:  http-inputs-sudhir.splunkcloud.com&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I set the&lt;STRONG&gt; HTTPS_PROXY&amp;nbsp; = value&lt;/STRONG&gt;(HTTPS_PROXY environment variable setting from my host) in env_file of your SC4S container and tried the CURL command in image interactive mode and it got&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;succeed - &lt;/STRONG&gt;Thank you.&lt;/P&gt;&lt;P&gt;But again I got another issue related to CA certificate-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;syslog-ng[165]: curl: error sending HTTP request; url='https://http-inputs-sudhir.splunkcloud.com:443/services/collector/event', error='Peer certificate cannot be authenticated with given CA certificates', worker_index='3', driver='d_hec_fmt#0', location='root generator dest_hec:5:5'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have few&amp;nbsp; SSL certificates installed on machine, but note sure whether those are creating problem.&lt;/P&gt;&lt;P&gt;Need suggestion, do I need to uninstall my ssl certs from here or&amp;nbsp; need to install ssl root CA on cloud HEC-end point.&amp;nbsp; I am hoping now this will not trouble more as earlier.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 19:00:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/565107#M100576</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-27T19:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to send log with syslog - syslog-ng[1]: curl: error sending HTTP request -  'Couldn\'t connect to server'</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/565278#M100592</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199268"&gt;@s2_splunk&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Finally I got my SC4S logs on the place,&lt;/P&gt;&lt;P&gt;Above error got resolve by setting the below variable-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SC4S_DEST_SPLUNK_HEC_TLS_VERIFY = no&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-send-log-with-syslog-syslog-ng-1-curl-error-sending/m-p/565278#M100592</guid>
      <dc:creator>sutom</dc:creator>
      <dc:date>2021-08-31T07:00:06Z</dc:date>
    </item>
  </channel>
</rss>

