Skip to content

Commit fb53361

Browse files
authored
add splunk password env var to examples (#416)
1 parent 2abeda8 commit fb53361

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

splunk/common-files/entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Environment Variables:
124124
* SPLUNK_GROUP - group under which to run Splunk (default: splunk)
125125
* SPLUNK_HOME - home directory where Splunk gets installed (default: /opt/splunk)
126126
* SPLUNK_START_ARGS - arguments to pass into the Splunk start command; you must include '--accept-license' to start Splunk (default: none)
127+
* SPLUNK_PASSWORD - password to log into this Splunk instance, you must include a password (default: none)
127128
* SPLUNK_ROLE - the role of this Splunk instance (default: splunk_standalone)
128129
Acceptable values:
129130
- splunk_standalone
@@ -140,9 +141,9 @@ Environment Variables:
140141
* SPLUNK_APPS_URL - comma-separated list of URLs to Splunk apps which will be downloaded and installed
141142
142143
Examples:
143-
* docker run -it -p 8000:8000 splunk/splunk start
144-
* docker run -it -e SPLUNK_START_ARGS=--accept-license -p 8000:8000 -p 8089:8089 splunk/splunk start
145-
* docker run -it -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_LICENSE_URI=http://example.com/splunk.lic -p 8000:8000 splunk/splunk start
144+
* docker run -it -e SPLUNK_PASSWORD=helloworld -p 8000:8000 splunk/splunk start
145+
* docker run -it -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=helloworld -p 8000:8000 -p 8089:8089 splunk/splunk start
146+
* docker run -it -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_LICENSE_URI=http://example.com/splunk.lic -e SPLUNK_PASSWORD=helloworld -p 8000:8000 splunk/splunk start
146147
* docker run -it -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_INDEXER_URL=idx1,idx2 -e SPLUNK_SEARCH_HEAD_URL=sh1,sh2 -e SPLUNK_ROLE=splunk_search_head --hostname sh1 --network splunknet --network-alias sh1 -e SPLUNK_PASSWORD=helloworld -e SPLUNK_LICENSE_URI=http://example.com/splunk.lic splunk/splunk start
147148
148149
EOF

uf/common-files/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Environment Variables:
118118
* SPLUNK_GROUP - group under which to run Splunk (default: splunk)
119119
* SPLUNK_HOME - home directory where Splunk gets installed (default: /opt/splunk)
120120
* SPLUNK_START_ARGS - arguments to pass into the Splunk start command; you must include '--accept-license' to start Splunk (default: none)
121+
* SPLUNK_PASSWORD - password to log into this Splunk instance, you must include a password (default: none)
121122
* SPLUNK_STANDALONE_URL, SPLUNK_INDEXER_URL, ... - comma-separated list of resolvable aliases to properly bring-up a distributed environment.
122123
This is optional for the UF, but necessary if you want to forward logs to another containerized Splunk instance
123124
* SPLUNK_BUILD_URL - URL to a Splunk Universal Forwarder build which will be installed (instead of the image's default build)

0 commit comments

Comments
 (0)