Skip to content

Commit 50a4e51

Browse files
author
Tony Lee
authored
Merge pull request #217 from splunk/develop
Release 7.3.1
2 parents 62476c3 + b31fbea commit 50a4e51

File tree

6 files changed

+71
-6
lines changed

6 files changed

+71
-6
lines changed

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 := 7.2.6
11-
SPLUNK_BUILD := c0bf0f679ce9
10+
SPLUNK_VERSION := 7.3.1
11+
SPLUNK_BUILD := bd63e13aa157
1212
ifeq ($(shell arch), s390x)
1313
SPLUNK_ARCH = s390x
1414
else

docs/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Navigation
44

5+
* [7.3.1](#731)
56
* [7.3.0](#730)
67
* [7.2.7](#727)
78
* [7.2.6](#726)
@@ -15,6 +16,24 @@
1516

1617
---
1718

19+
## 7.3.1
20+
21+
#### What's New?
22+
* New Splunk Enterprise release of 7.3.1
23+
24+
#### docker-splunk changes:
25+
* Bumping Splunk version. For details, see: https://docs.splunk.com/Documentation/Splunk/7.3.1/ReleaseNotes/Fixedissues
26+
* Documentation update
27+
* Minor bug fixes
28+
29+
#### splunk-ansible changes:
30+
* Fixed Enterprise Security application installation issues
31+
* Refactored Systemd
32+
* Fixed Ansible formatting issue
33+
* Cleaned up Python files before install
34+
35+
---
36+
1837
## 7.3.0
1938

2039
#### What's New?

docs/EXAMPLES.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Note that for more complex scenarios, we will opt to use a [Docker compose file]
2020
* [Create search head cluster](#create-search-head-cluster)
2121
* [Create indexer cluster and search head cluster](#create-indexer-cluster-and-search-head-cluster)
2222
* [Enable root endpoint on SplunkWeb](#enable-root-endpoint-on-splunkweb)
23+
* [Create sidecar forwarder](#create-sidecar-forwarder)
2324
* [More](#more)
2425

2526
## Create standalone from CLI
@@ -808,5 +809,47 @@ $ SPLUNK_PASSWORD=<password> docker-compose up -d
808809

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

812+
## Create sidecar forwarder
813+
<details><summary>k8s-sidecar.yml</summary><p>
814+
815+
```
816+
apiVersion: v1
817+
kind: Pod
818+
metadata:
819+
name: example
820+
spec:
821+
containers:
822+
- name: splunk-uf
823+
image: splunk/universalforwarder:latest
824+
env:
825+
- name: SPLUNK_START_ARGS
826+
value: --accept-license
827+
- name: SPLUNK_PASSWORD
828+
value: helloworld
829+
- name: SPLUNK_CMD
830+
value: add monitor /var/log/
831+
- name: SPLUNK_STANDALONE_URL
832+
value: splunk.company.internal
833+
volumeMounts:
834+
- name: shared-data
835+
mountPath: /var/log
836+
- name: my-app
837+
image: my-app
838+
volumeMounts:
839+
- name: shared-data
840+
mountPath: /app/logs/
841+
volumes:
842+
- name: shared-data
843+
emptyDir: {}
844+
```
845+
</p></details>
846+
847+
Execute the following to bring up your deployment:
848+
```
849+
$ kubectl apply -f k8s-sidecar.yml
850+
```
851+
852+
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.
853+
811854
## More
812855
There are a variety of Docker compose scenarios in the `docker-splunk` repo [here](https://github.com/splunk/docker-splunk/tree/develop/test_scenarios). Please feel free to use any of those for reference in terms of different topologies!

splunk/common-files/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ FROM ${SPLUNK_BASE_IMAGE}:latest as package
2121
ARG SPLUNK_BUILD_URL
2222
COPY splunk/common-files/make-minimal-exclude.py /tmp
2323
RUN python /tmp/make-minimal-exclude.py ${SPLUNK_BUILD_URL} > /tmp/splunk-minimal-exclude.list
24-
RUN echo "Downloading Splunk and validating the checksum at: ${SPLUNK_BUILD_URL}"
2524
RUN wget -qO /tmp/splunk.tgz ${SPLUNK_BUILD_URL}
2625
RUN wget -qO /tmp/splunk.tgz.md5 ${SPLUNK_BUILD_URL}.md5
2726
RUN test $(md5sum /tmp/splunk.tgz | sed 's,\([a-z0-9]*\).*,\1,') = $(cat /tmp/splunk.tgz.md5 | sed 's,MD5.*=.\([a-z0-9]*\).*,\1,')
28-
RUN mkdir -p /opt/splunk/var /minimal/splunk/var /extras/splunk/var
27+
RUN mkdir -p /minimal/splunk/var /extras/splunk/var
2928
RUN tar -C /minimal/splunk --strip 1 --exclude-from=/tmp/splunk-minimal-exclude.list -zxf /tmp/splunk.tgz
3029
RUN tar -C /extras/splunk --strip 1 --wildcards --files-from=/tmp/splunk-minimal-exclude.list -zxf /tmp/splunk.tgz
3130
RUN mv /minimal/splunk/etc /minimal/splunk-etc
3231
RUN mv /extras/splunk/etc /extras/splunk-etc
33-
RUN mkdir -p /minimal/splunk/share/splunk/search_mrsparkle/modules.new
32+
RUN mkdir -p /minimal/splunk/etc /minimal/splunk/share/splunk/search_mrsparkle/modules.new
3433
COPY splunk/common-files/apps /extras/splunk-etc/apps/
3534

3635

@@ -106,6 +105,7 @@ RUN sed -i -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /
106105
&& mkdir ${CONTAINER_ARTIFACT_DIR} \
107106
&& chown -R ${ANSIBLE_USER}:${ANSIBLE_GROUP} $CONTAINER_ARTIFACT_DIR \
108107
&& chmod -R 555 ${SPLUNK_ANSIBLE_HOME} \
108+
&& chmod -R 777 ${CONTAINER_ARTIFACT_DIR} \
109109
&& chmod 755 /sbin/entrypoint.sh /sbin/createdefaults.py /sbin/checkstate.sh
110110

111111
USER ${ANSIBLE_USER}

splunk/common-files/make-minimal-exclude.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@
4141
print "*/etc/apps/gettingstarted*"
4242
else:
4343
print "*/etc/apps/splunk_metrics_workspace*"
44+
elif int(m.group(1)) > 7:
45+
print EXCLUDE_V7
46+
print "*/etc/apps/splunk_metrics_workspace*"

test_scenarios/kubernetes/3idxc3shc1cm1lm1dep-pvc/splunk-indexer-statefulset-persistent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
image: splunk/splunk:latest
5050
env:
5151
- name: SPLUNK_HOME
52-
value: /opt/splunk/
52+
value: /opt/splunk
5353
- name: SPLUNK_DEFAULTS_URL
5454
value: http://splunk-defaults/default.yml
5555
- name: SPLUNK_START_ARGS

0 commit comments

Comments
 (0)