Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/destinations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ You can configure Splunk Connect for Syslog to use any destination available in
| SC4S_DEST_SPLUNK_HEC_<ID>_MODE | string | "GLOBAL" or "SELECT". |
| SC4S_DEST_SPLUNK_HEC_<ID>_TLS_VERIFY | yes(default) or no | Verify HTTP(s) certificates. |
| SC4S_DEST_SPLUNK_HEC_<ID>_HTTP_COMPRESSION | yes or no(default) | Compress outgoing HTTP traffic using the gzip method. |
| SC4S_DEST_SPLUNK_HEC_<ID>_SNI | yes or no(default) | Enable TLS Server Name Indication (SNI). When enabled, SC4S sends the HEC destination hostname during the TLS handshake, which allows SSL/TLS passthrough load balancers to make routing decisions based on the target hostname. |

## HTTP Compression

Expand Down
3 changes: 3 additions & 0 deletions package/etc/conf.d/destinations/dest_hec/plugin.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ destination d_hec{{ dest_mode }}{{ altname }}{
{%- if ssl_version %}
ssl-version("{{ ssl_version }}")
{%- endif %}
{%- if sni %}
sni(yes)
{%- endif %}
)
use-system-cert-store(yes)
body('{{ msg_template }}')
Expand Down
1 change: 1 addition & 0 deletions package/etc/conf.d/destinations/dest_hec/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def hec_endpoint_collector(hec_path, url_hec):
peer_verify=os.getenv(f"SC4S_DEST_SPLUNK_HEC_{group}_TLS_VERIFY", "yes"),
cipher_suite=os.getenv(f"SC4S_DEST_SPLUNK_HEC_{group}_CIPHER_SUITE"),
ssl_version=os.getenv(f"SC4S_DEST_SPLUNK_HEC_{group}_SSL_VERSION"),
sni=os.getenv(f"SC4S_DEST_SPLUNK_HEC_{group}_SNI", "no").lower() in ["true", "1", "t", "y", "yes"],
http_compression=http_compression
)

Expand Down
Loading