🚀 Add Support for Running Splunk on Apple Silicon
362
Running Splunk Enterprise in Docker on Apple Silicon (e.g. Apple M1/M2) has been problematic starting from version 9.4+.
The root cause is:
linux/amd64 via QEMU) on Apple Silicon, these instructions are not supportedmongod crashes with Illegal instruction (SIGILL)👉 This repository provides a workaround by forcing Splunk to use an older MongoDB version (4.2), which is compatible with Apple Silicon emulation.
This project provides a custom Docker image for running Splunk on Apple Silicon by modifying its internal MongoDB (KVStore) behavior.
Special thanks to:
for their original research and workaround ideas.
This image applies the following modifications:
mongod binaries to point to mongod-4.2Replaces the default mongod entry with a custom wrapper:
--setParameter=ocspEnabled=*--setParameter=minSnapshotHistoryWindowInSeconds=5compat-openssl10, net-snmp)libnetsnmpmibs.so.31 → libnetsnmpmibs.so.35
SASL_PATH=/dev/null
⚠️ This solution is a deep internal workaround and not officially supported.
👉 Use only for development, testing, or local environments
docker buildx build --platform linux/amd64 -t splunk-universal .
docker buildx build \
--platform linux/amd64 \
--build-arg SPLUNK_VERSION=9.4.10 \
-t splunk-universal .
docker run \
--platform=linux/amd64 \
-d \
-p 8000:8000 \
-p 8089:8089 \
-e "SPLUNK_GENERAL_TERMS=--accept-sgt-current-at-splunk-com" \
-e "SPLUNK_START_ARGS=--accept-license" \
-e "SPLUNK_PASSWORD=SplunkPassw0rd" \
--name splunk \
splunk-universal
After startup:
Splunk Web: http://localhost:8000
KVStore should:
No more:
Illegal instruction (SIGILL)mongod exited abnormallyThis approach prioritizes practical usability on Apple Silicon over strict compatibility with Splunk’s expected runtime.
If you need:
Content type
Image
Digest
sha256:8b765cc0c…
Size
1.8 GB
Last updated
6 months ago
docker pull mttjsc/splunk:10.2.2