Skip to content

Commit 0d52a37

Browse files
authored
Addressing feedback on top-level README (#340)
1 parent 0ede5cd commit 0d52a37

File tree

2 files changed

+49
-7
lines changed

2 files changed

+49
-7
lines changed

README.md

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ The provisioning of these disjoint containers is handled by the [splunk-ansible]
1212

1313
1. [Purpose](#purpose)
1414
2. [Quickstart](#quickstart)
15-
3. [Support](#support)
16-
4. [Contributing](#contributing)
17-
5. [License](#license)
15+
3. [Documentation](#documentation)
16+
4. [Support](#support)
17+
5. [Contributing](#contributing)
18+
6. [License](#license)
1819

1920
----
2021

@@ -28,10 +29,12 @@ Please refer to [Splunk products](https://www.splunk.com/en_us/software.html) fo
2829
##### What is docker-splunk?
2930
This is the official source code repository for building Docker images of Splunk Enterprise and Splunk Universal Forwarder. By introducing containerization, we can marry the ideals of infrastructure-as-code and declarative directives to manage and run Splunk Enterprise.
3031

32+
---
33+
3134
## Quickstart
3235
Use the following command to start a single standalone instance of Splunk Enterprise:
33-
```
34-
$ docker run -it -p 8000:8000 -e "SPLUNK_PASSWORD=<password>" -e "SPLUNK_START_ARGS=--accept-license" splunk/splunk:latest
36+
```bash
37+
$ docker run -it --name so1 -p 8000:8000 -e "SPLUNK_PASSWORD=<password>" -e "SPLUNK_START_ARGS=--accept-license" splunk/splunk:latest
3538
```
3639

3740
Let's break down what this command does:
@@ -42,8 +45,43 @@ Let's break down what this command does:
4245

4346
After the container starts up successfully, you should be able to access SplunkWeb at http://localhost:8000 with `admin:<password>`.
4447

48+
To view the logs from the container created above, run:
49+
```bash
50+
$ docker logs -f so1
51+
```
52+
53+
To enter the container and run some Splunk CLI commands:
54+
```bash
55+
# Defaults to "ansible" user
56+
docker exec -it so1 /bin/bash
57+
# Run shell as "splunk" user
58+
docker exec -u splunk -it so1 bash
59+
```
60+
61+
For an example of how to enable TCP 10514 for listening:
62+
```bash
63+
docker exec -u splunk so1 /opt/splunk/bin/splunk add tcp 10514 \
64+
-sourcetype syslog -resolvehost true \
65+
-auth "admin:${SPLUNK_PASSWORD}"
66+
```
67+
68+
To install an app:
69+
```bash
70+
# Alternatively, apps can be installed at Docker run-time, ex:
71+
# docker run -e SPLUNK_APPS_URL=http://web/app.tgz ...
72+
docker exec -u splunk so1 /opt/splunk/bin/splunk install \
73+
/path/to/app.tar -auth "admin:${SPLUNK_PASSWORD}"
74+
```
75+
76+
Additional information on Docker support for Splunk Enterprise can be found [here](https://docs.splunk.com/Documentation/Splunk/latest/Installation/DeployandrunSplunkEnterpriseinsideDockercontainers).
77+
78+
---
79+
80+
## Documentation
4581
For full usage instructions (including examples, advanced deployments, scenarios), please visit the [docker-splunk documentation](https://splunk.github.io/docker-splunk/) page.
4682

83+
---
84+
4785
## Support
4886
Please use the [GitHub issue tracker](https://github.com/splunk/docker-splunk/issues) to submit bugs or request features.
4987

@@ -54,11 +92,15 @@ If you have additional questions or need more support, you can:
5492

5593
For more detailed informations on support, please see the official [support guidelines](docs/SUPPORT.md).
5694

95+
---
96+
5797
## Contributing
5898
We welcome feedback and contributions from the community! Please see our [contribution guidelines](docs/CONTRIBUTING.md) for more information on how to get involved.
5999

100+
---
101+
60102
## License
61-
Copyright 2018-2019 Splunk.
103+
Copyright 2018-2020 Splunk.
62104

63105
Distributed under the terms of our [license](docs/LICENSE.md), splunk-ansible is free and open source software.
64106

docs/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ At the current time, this image only supports the Docker runtime engine and requ
2121
5. `overlay2` Docker daemon storage driver
2222
* Create a file /etc/docker/daemon.json on Linux systems, or C:\ProgramData\docker\config\daemon.json on Windows systems. Add {"storage-driver": "overlay2"} to the daemon.json. If you already have an existing json, please only add "storage-driver": "overlay2" as a key, value pair.
2323

24-
For more details, please see the official [supported architectures and platforms for containerized Splunk environments](https://docs.splunk.com/Documentation/Splunk/latest/Installation/Systemrequirements#Containerized_computing_platforms) as well as [hardware and capacity recommendations](https://docs.splunk.com/Documentation/Splunk/latest/Installation/Systemrequirements).
24+
For more details, please see the official [supported architectures and platforms for containerized Splunk environments](https://docs.splunk.com/Documentation/Splunk/latest/Installation/Systemrequirements#Containerized_computing_platforms) as well as [hardware and capacity recommendations](https://docs.splunk.com/Documentation/Splunk/latest/Installation/Systemrequirements). Basic usage on how to [deploy and run Splunk Enterprise inside containers](https://docs.splunk.com/Documentation/Splunk/latest/Installation/DeployandrunSplunkEnterpriseinsideDockercontainers) is also available.
2525

2626
If you intend for this containerized Splunk Enterprise deployment to be supported in your Enterprise Support Agreement, you must verify you meet all of the above "supported" requirements. Failure to do so will render your deployment in an "unsupported" state.
2727

0 commit comments

Comments
 (0)