Skip to content

Commit 4230b22

Browse files
authored
Merge pull request #381 from splunk/develop
Release/8.0.4.1 and 7.3.6
2 parents 1283bba + 78572c6 commit 4230b22

File tree

8 files changed

+282
-121
lines changed

8 files changed

+282
-121
lines changed

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@
1111

1212
# Docs-only pull requests:
1313
/docs/ @alishamayor @nwang92 @bb03
14+
15+
# Release changelog
16+
docs/CHANGELOG.md @nwang92 @alishamayor @arctan5x @lephino @jrigassio-splunk @jmeixensperger @hendolim @jonathan-vega-splunk @bb03

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ SPLUNK_ANSIBLE_BRANCH ?= develop
77
SPLUNK_COMPOSE ?= cluster_absolute_unit.yaml
88
# Set Splunk version/build parameters here to define downstream URLs and file names
99
SPLUNK_PRODUCT := splunk
10-
SPLUNK_VERSION := 8.0.4
11-
SPLUNK_BUILD := 767223ac207f
10+
SPLUNK_VERSION := 8.0.4.1
11+
SPLUNK_BUILD := ab7a85abaa98
1212
ifeq ($(shell arch), s390x)
1313
SPLUNK_ARCH = s390x
1414
else

base/redhat-8/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 Splunk
1+
# Copyright 2018-2020 Splunk
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
1616
# the container catalog moved from registry.access.redhat.com to registry.redhat.io
1717
# So at some point before they deprecate the old registry we have to make sure that
1818
# we have access to the new registry and change where we pull the ubi image from.
19-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1-409
19+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.2-267
2020
LABEL name="splunk" \
2121
maintainer="[email protected]" \
2222
vendor="splunk" \

base/redhat-8/install.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2018 Splunk
2+
# Copyright 2018-2020 Splunk
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -32,10 +32,17 @@ microdnf -y --nodocs install wget sudo shadow-utils procps tar tzdata
3232
#install busybox direct from the multiarch since epel isn't availible yet for redhat8
3333
wget -O /bin/busybox https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-`arch`
3434
chmod +x /bin/busybox
35+
microdnf -y --nodocs update gnutls kernel-headers
3536
microdnf -y --nodocs install python2-pip python2-devel redhat-rpm-config gcc libffi-devel openssl-devel
3637
pip2 --no-cache-dir install requests ansible
37-
microdnf -y remove gcc libffi-devel openssl-devel redhat-rpm-config python2-devel device-mapper-libs device-mapper cryptsetup-libs systemd systemd-pam dbus dbus-common dbus-daemon dbus-tools dbus-libs go-srpm-macros iptables-libs ocaml-srpm-macros openblas-srpm-macros qt5-srpm-macros perl-srpm-macros rust-srpm-macros ghc-srpm-macros platform-python python3-rpm-generators platform-python-setuptools python3-libs platform-python-pip python3-rpm-generators python3-rpm-macros elfutils-libs efi-srpm-macros zip unzip xkeyboard-config libxkbcommon redhat-rpm-config util-linux dwz file file-libs findutils iptables-libs diffutils annobin python-rpm-macros python-srpm-macros python2-devel python2-rpm-macros kmod-libs libfdisk libffi-devel libpcap libseccomp libutempter
38-
38+
microdnf -y remove gcc openssl-devel redhat-rpm-config python2-devel device-mapper-libs device-mapper trousers systemd systemd-pam \
39+
dwz dbus dbus-common dbus-daemon dbus-tools dbus-libs go-srpm-macros iptables-libs annobin cryptsetup-libs \
40+
ocaml-srpm-macros openblas-srpm-macros qt5-srpm-macros perl-srpm-macros rust-srpm-macros ghc-srpm-macros \
41+
efi-srpm-macros python-srpm-macros python-rpm-macros python3-rpm-macros python2-rpm-macros python3-rpm-generators \
42+
zip unzip xkeyboard-config file file-libs findutils diffutils kmod-libs util-linux libxkbcommon libffi-devel \
43+
elfutils-libs elfutils-debuginfod-client elfutils-default-yama-scope pcre2-devel pcre2-utf16 pcre2-utf32 \
44+
libfdisk libpcap libseccomp libselinux-devel libutempter binutils libxcrypt-devel cpp glibc-devel glibc-headers \
45+
krb5-devel libkadm5 platform-python-pip
3946

4047
cd /bin
4148
ln -s python2 python || true

docs/CHANGELOG.md

Lines changed: 80 additions & 65 deletions
Large diffs are not rendered by default.

docs/EXAMPLES.md

Lines changed: 56 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ Note that for more complex scenarios, we will opt to use a [Docker compose file]
1515
* [...with a SplunkBase app](#create-standalone-with-splunkbase-app)
1616
* [...with SSL enabled](#create-standalone-with-ssl-enabled)
1717
* [...with a Splunk Free license](#create-standalone-with-splunk-free-license)
18+
* [Create sidecar forwarder running as root](#create-sidecar-root-forwarder)
1819
* [Create standalone and universal forwarder](#create-standalone-and-universal-forwarder)
1920
* [Create heavy forwarder](#create-heavy-forwarder)
2021
* [Create heavy forwarder and deployment server](#create-heavy-forwarder-and-deployment-server)
2122
* [Create indexer cluster](#create-indexer-cluster)
2223
* [Create search head cluster](#create-search-head-cluster)
2324
* [Create indexer cluster and search head cluster](#create-indexer-cluster-and-search-head-cluster)
2425
* [Enable root endpoint on SplunkWeb](#enable-root-endpoint-on-splunkweb)
25-
* [Create sidecar forwarder](#create-sidecar-forwarder)
2626
* [More](#more)
2727

2828
## Create standalone from CLI
@@ -221,6 +221,61 @@ $ docker run --name so1 --hostname so1 -p 8000:8000 \
221221
-it splunk/splunk:latest
222222
```
223223

224+
## Create sidecar root forwarder
225+
226+
<details><summary markdown='span'><code>k8s-sidecar.yml</code></summary><p></p>
227+
228+
```yaml
229+
apiVersion: v1
230+
kind: Pod
231+
metadata:
232+
name: example
233+
spec:
234+
securityContext:
235+
runAsUser: 0
236+
runAsGroup: 0
237+
containers:
238+
- name: splunk-uf
239+
image: splunk/universalforwarder:latest
240+
env:
241+
- name: SPLUNK_START_ARGS
242+
value: --accept-license
243+
- name: SPLUNK_USER
244+
value: root
245+
- name: SPLUNK_GROUP
246+
value: root
247+
- name: SPLUNK_PASSWORD
248+
value: helloworld
249+
- name: SPLUNK_CMD
250+
value: add monitor /var/log/
251+
- name: SPLUNK_STANDALONE_URL
252+
value: splunk.company.internal
253+
volumeMounts:
254+
- name: shared-data
255+
mountPath: /var/log
256+
- name: my-app
257+
image: my-app
258+
volumeMounts:
259+
- name: shared-data
260+
mountPath: /app/logs/
261+
volumes:
262+
- name: shared-data
263+
emptyDir: {}
264+
```
265+
</details><p></p>
266+
267+
Execute the following to bring up your deployment:
268+
```
269+
$ kubectl apply -f k8s-sidecar.yml
270+
```
271+
272+
Alternatively, if you're not using Kubernetes you can use the Docker CLI to bring up the Universal Forwarder under the `root` user with the following:
273+
```
274+
$ docker run -d -P --user root -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=helloworld -e SPLUNK_USER=root -e SPLUNK_GROUP=root splunk/universalforwarder:latest
275+
```
276+
277+
After your pod is ready, the universal forwarder will be reading the logs generated by your app via the shared volume mount. In the ideal case, your app is generating the logs while the forwarder is reading them and streaming the output to a separate Splunk instance located at splunk.company.internal.
278+
224279
## Create standalone and universal forwarder
225280
You can also enable distributed deployments. In this case, we can create a Splunk universal forwarder running in a container to stream logs to a Splunk standalone, also running in a container.
226281

@@ -855,48 +910,5 @@ $ SPLUNK_PASSWORD=<password> docker-compose up -d
855910

856911
Then, visit SplunkWeb on your browser with the root endpoint in the URL, such as `http://localhost:8000/splunkweb`.
857912

858-
## Create sidecar forwarder
859-
860-
<details><summary markdown='span'><code>k8s-sidecar.yml</code></summary><p></p>
861-
862-
```yaml
863-
apiVersion: v1
864-
kind: Pod
865-
metadata:
866-
name: example
867-
spec:
868-
containers:
869-
- name: splunk-uf
870-
image: splunk/universalforwarder:latest
871-
env:
872-
- name: SPLUNK_START_ARGS
873-
value: --accept-license
874-
- name: SPLUNK_PASSWORD
875-
value: helloworld
876-
- name: SPLUNK_CMD
877-
value: add monitor /var/log/
878-
- name: SPLUNK_STANDALONE_URL
879-
value: splunk.company.internal
880-
volumeMounts:
881-
- name: shared-data
882-
mountPath: /var/log
883-
- name: my-app
884-
image: my-app
885-
volumeMounts:
886-
- name: shared-data
887-
mountPath: /app/logs/
888-
volumes:
889-
- name: shared-data
890-
emptyDir: {}
891-
```
892-
</details><p></p>
893-
894-
Execute the following to bring up your deployment:
895-
```
896-
$ kubectl apply -f k8s-sidecar.yml
897-
```
898-
899-
After your pod is ready, the universal forwarder will be reading the logs generated by your app via the shared volume mount. In the ideal case, your app is generating the logs while the forwarder is reading them and streaming the output to a separate Splunk instance located at splunk.company.internal.
900-
901913
## More
902914
There are a variety of Docker compose scenarios in the `docker-splunk` repo [here](https://github.com/splunk/docker-splunk/tree/develop/test_scenarios). Feel free to use any of those for reference in deploying different topologies!

tests/pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[pytest]
22
filterwarnings =
33
ignore::urllib3.exceptions.InsecureRequestWarning
4+
markers =
5+
large

0 commit comments

Comments
 (0)