skip to main content
Installation Guide > Appendices > Appendix B: Log retention using Vector > Example Vector Log Retention Configuration
Example Vector Log Retention Configuration
The configurations described in this section are examples and not intended for use without further modification.
Note: The splunk_hec_logs component was previously named splunk_hec. Update your Vector configuration to accommodate the name change:
[sinks.my_splunk_hec_logs_sink]
+type = "splunk_hec_logs"
-type = "splunk_hec"
Example Config:
CommonAdvanced
TOMLYAMLJSON
[sinks.my_sink_id]
type = "splunk_hec_logs"
inputs = [ "my-source-or-transform-id" ]
endpoint = "https://http-inputs-hec.splunkcloud.com"
host_key = "hostname"
indexed_fields = [ "field1" ]
compression = "none"
default_token = "${SPLUNK_HEC_TOKEN}"
[sinks.my_sink_id.encoding]
codec = "json"