Skip to content

Commit

Permalink
Merge branch 'release/0.13.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Oct 10, 2019
2 parents 7fec302 + 01f9fb4 commit 72668ec
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 32 deletions.
6 changes: 3 additions & 3 deletions docs/gettingstarted/docker-swarm-general.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ services:
- target: 514
published: 514
protocol: tcp
#Comment the following line out if using docker-compose
# Comment the following line out if using docker-compose
mode: host
- target: 514
published: 514
protocol: udp
#Comment the following line out if using docker-compose
# Comment the following line out if using docker-compose
mode: host
env_file:
- /opt/sc4s/env_file
volumes:
- /opt/sc4s/local:/opt/syslog-ng/etc/conf.d/local
#Uncomment the following line if custom TLS certs are provided
# Uncomment the following line if custom TLS certs are provided
# - /opt/sc4s/tls:/opt/syslog-ng/tls
```

Expand Down
10 changes: 4 additions & 6 deletions docs/gettingstarted/docker-swarm-rhel7.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,18 @@ services:
- target: 514
published: 514
protocol: tcp
#Comment the following line out if using docker-compose
# Comment the following line out if using docker-compose
mode: host
- target: 514
published: 514
protocol: udp
#Comment the following line out if using docker-compose
# Comment the following line out if using docker-compose
mode: host
env_file:
- /opt/sc4s/env_file
volumes:
- /opt/sc4s/default/splunk_index.csv:/opt/syslog-ng/etc/context-local/splunk_index.csv
- /opt/sc4s/default/vendor_product_by_source.csv:/opt/syslog-ng/etc/context-local/vendor_product_by_source.csv
- /opt/sc4s/default/vendor_product_by_source.conf:/opt/syslog-ng/etc/context-local/vendor_product_by_source.conf
#Uncomment the following line if custom TLS certs are provided
- /opt/sc4s/local:/opt/syslog-ng/etc/conf.d/local
# Uncomment the following line if custom TLS certs are provided
- /opt/sc4s/tls:/opt/syslog-ng/tls
```
Expand Down
15 changes: 6 additions & 9 deletions docs/gettingstarted/docker-systemd-general.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,25 @@ Requires=network.service
[Service]
Environment="SC4S_IMAGE=splunk/sc4s:latest"

#Note Uncomment the following line to use custom index names AND download the splunk_index.csv file template per getting started
Environment="SC4S_UNIT_SPLUNK_INDEX=-v /opt/sc4s/default/splunk_index.csv:/opt/syslog-ng/etc/context-local/splunk_index.csv"
# Optional mount point for local overrides and configurations; see notes in docs

#Note Uncomment the following two lines for host and ip based source type mapping AND download the two file templates per getting started
Environment="SC4S_UNIT_VP_CSV=-v /opt/sc4s/default/vendor_product_by_source.csv:/opt/syslog-ng/etc/context-local/vendor_product_by_source.csv"
Environment="SC4S_UNIT_VP_CONF=-v /opt/sc4s/default/vendor_product_by_source.conf:/opt/syslog-ng/etc/context-local/vendor_product_by_source.conf"
Environment="SC4S_LOCAL_CONFIG_MOUNT=-v /opt/sc4s/local:/opt/syslog-ng/etc/conf.d/local"

#Uncomment the following line if custom TLS certs are provided
#Environment="SC4S_TLS_DIR=-v /opt/sc4s/tls:/opt/syslog-ng/tls"
# Uncomment the following line if custom TLS certs are provided
# Environment="SC4S_TLS_DIR=-v /opt/sc4s/tls:/opt/syslog-ng/tls"

TimeoutStartSec=0
Restart=always

ExecStartPre=/usr/bin/docker pull $SC4S_IMAGE
ExecStartPre=/usr/bin/docker run \
--env-file=/opt/sc4s/default/env_file \
"$SC4S_UNIT_SPLUNK_INDEX" "$SC4S_UNIT_VP_CSV" "$SC4S_UNIT_VP_CONF" "$SC4S_TLS_DIR" \
"$SC4S_LOCAL_CONFIG_MOUNT" \
--name SC4S_preflight --rm \
$SC4S_IMAGE -s
ExecStart=/usr/bin/docker run -p 514:514 -p 514:514/udp \
--env-file=/opt/sc4s/default/env_file \
"$SC4S_UNIT_SPLUNK_INDEX" "$SC4S_UNIT_VP_CSV" "$SC4S_UNIT_VP_CONF" "$SC4S_TLS_DIR" \
"$SC4S_LOCAL_CONFIG_MOUNT" \
--name SC4S --rm \
$SC4S_IMAGE
```
Expand Down
15 changes: 6 additions & 9 deletions docs/gettingstarted/podman-systemd-general.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,25 @@ Requires=network.service
[Service]
Environment="SC4S_IMAGE=splunk/scs:latest"

#Note Uncomment the following line to use custom index names AND download the splunk_index.csv file template per getting started
Environment="SC4S_UNIT_SPLUNK_INDEX=-v /opt/sc4s/default/splunk_index.csv:/opt/syslog-ng/etc/context-local/splunk_index.csv"
# Optional mount point for local overrides and configurations; see notes in docs

#Note Uncomment the following two lines for host and ip based source type mapping AND download the two file templates per getting started
Environment="SC4S_UNIT_VP_CSV=-v /opt/sc4s/default/vendor_product_by_source.csv:/opt/syslog-ng/etc/context-local/vendor_product_by_source.csv"
Environment="SC4S_UNIT_VP_CONF=-v /opt/sc4s/default/vendor_product_by_source.conf:/opt/syslog-ng/etc/context-local/vendor_product_by_source.conf"
Environment="SC4S_LOCAL_CONFIG_MOUNT=-v /opt/sc4s/local:/opt/syslog-ng/etc/conf.d/local"

#Uncomment the following line if custom TLS certs are provided
#Environment="SC4S_TLS_DIR=-v /opt/sc4s/tls:/opt/syslog-ng/tls"
# Uncomment the following line if custom TLS certs are provided
# Environment="SC4S_TLS_DIR=-v /opt/sc4s/tls:/opt/syslog-ng/tls"

TimeoutStartSec=0
Restart=always

ExecStartPre=/usr/bin/podman pull $SC4S_IMAGE
ExecStartPre=/usr/bin/podman run \
--env-file=/opt/sc4s/default/env_file \
"$SC4S_UNIT_SPLUNK_INDEX" "$SC4S_UNIT_VP_CSV" "$SC4S_UNIT_VP_CONF" "$SC4S_TLS_DIR" \
"$SC4S_LOCAL_CONFIG_MOUNT" \
--name SC4S_preflight --rm \
$SC4S_IMAGE -s
ExecStart=/usr/bin/podman run -p 514:514 -p 514:514/udp \
--env-file=/opt/sc4s/default/env_file \
"$SC4S_UNIT_SPLUNK_INDEX" "$SC4S_UNIT_VP_CSV" "$SC4S_UNIT_VP_CONF" "$SC4S_TLS_DIR" \
"$SC4S_LOCAL_CONFIG_MOUNT" \
--name SC4S --rm \
$SC4S_IMAGE
```
Expand Down
4 changes: 2 additions & 2 deletions package/etc/conf.d/destinations/splunk_hec.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ destination d_hec {
user("sc4s")
headers("{{- getenv "SC4S_DEST_SPLUNK_DEST_SPLUNK_HEC_HEADERS" "Connection: close"}}")
password("{{- getenv "SPLUNK_HEC_TOKEN"}}")

{{- if eq (getenv "SC4S_DEST_SPLUNK_HEC_DISKBUFF_ENABLE" "yes") "yes"}}
persist-name("splunk_hec")
{{- if eq (getenv "SC4S_DEST_SPLUNK_HEC_DISKBUFF_ENABLE" "yes") "yes"}}

disk-buffer(

{{- if eq (getenv "SC4S_DEST_SPLUNK_HEC_DISKBUFF_RELIABLE" "no") "yes"}}
Expand Down
4 changes: 2 additions & 2 deletions package/etc/conf.d/destinations/splunk_hec_internal.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ destination d_hec_internal {
url("{{- getenv "SPLUNK_HEC_URL"}}")
method("POST")
log-fifo-size({{- getenv "SC4S_DEST_SPLUNK_HEC_LOG_FIFO_SIZE" "180000000"}})
workers(1)
workers(10)
batch-lines({{- getenv "SC4S_DEST_SPLUNK_HEC_BATCH_LINES" "1000"}})
batch-bytes({{- getenv "SC4S_DEST_SPLUNK_HEC_BATCH_BYTES" "4096kb"}})
batch-timeout({{- getenv "SC4S_DEST_SPLUNK_HEC_BATCH_TIMEOUT" "1"}})
Expand All @@ -12,7 +12,7 @@ destination d_hec_internal {
user("sc4s")
headers("{{- getenv "SC4S_DEST_SPLUNK_DEST_SPLUNK_HEC_HEADERS" "Connection: close"}}")
password("{{- getenv "SPLUNK_HEC_TOKEN"}}")

persist-name("splunk_hec_internal")

tls(peer-verify({{- getenv "SC4S_DEST_SPLUNK_HEC_TLS_VERIFY" "yes"}})
{{- if ne (getenv "SC4S_DEST_SPLUNK_HEC_CIPHER_SUITE") ""}}
Expand Down
3 changes: 2 additions & 1 deletion package/etc/conf.d/destinations/splunk_hec_metrics.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ destination d_hecmetrics {
batch-lines(50)
batch-bytes(1024Kb)
batch-timeout(1)
workers(10)
timeout(15)
user_agent("sc4s/1.0 (internal metrics)")
user("sc4s")
headers("{{- getenv "SC4S_DEST_SPLUNK_HEC_HEADERS" "Connection: close"}}")
password("{{- getenv "SPLUNK_HEC_TOKEN"}}")
persist-name("splunk_metrics")
persist-name("splunk_hec_metrics")

tls(peer-verify({{- getenv "SC4S_DEST_SPLUNK_HEC_TLS_VERIFY" "yes"}})
{{- if ne (getenv "SC4S_DEST_SPLUNK_HEC_CIPHER_SUITE") ""}}
Expand Down

0 comments on commit 72668ec

Please sign in to comment.