Skip to content

Commit ed4bb25

Browse files
committed
use HEC in integration example
1 parent 9a918af commit ed4bb25

6 files changed

Lines changed: 13 additions & 36 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/bin/
2-
integration/Splunk_TA_nix
2+
integration/Splunk_TA_nix
3+
!integration/Splunk_TA_nix/tarunner.yaml

integration/README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ Please follow the steps below to run this example.
66

77
In this folder, run:
88

9-
```> docker compose --profile splunk up -d```
9+
```> docker compose up -d```
1010

1111
This will deploy a Splunk instance locally. The instance will start up and be available over localhost:18000 with the credentials `admin` and `changeme`.
1212

13-
## Download and install Splunk Connect for OTLP
14-
15-
Download and install Splunk Connect for OTLP per the steps outlined in https://github.com/splunk/splunk-connect-for-otlp.
16-
17-
Make sure to configure the OTLP endpoint to use 0.0.0.0 so it is exposed by the docker container.
18-
1913
## Download the Splunk addon for Linux
2014

2115
Install the TA for Linux, downloading it from https://splunkbase.splunk.com/app/833
@@ -44,6 +38,6 @@ In the `Splunk_TA_nix` folder created, copy the `default` folder as `local`.
4438

4539
Open local/inputs.conf and edit each `disabled = 1` line to `disabled = 0`.
4640

47-
## Run tarunner
41+
## Search the main index
4842

49-
```> docker compose --profile splunk --profile tarunner up -d --build```
43+
Go to the search view and enjoy your TA data by searching for `index=main`
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type: splunk_hec
2+
endpoint: http://splunk:8088
3+
token: 00000000-0000-0000-0000-0000000000000

integration/docker-compose.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
11
services:
22
splunk:
33
image: splunk/splunk:9.4
4-
profiles:
5-
- splunk
64
container_name: splunk
75
environment:
86
- SPLUNK_START_ARGS=--accept-license
97
- SPLUNK_HEC_TOKEN=00000000-0000-0000-0000-0000000000000
108
- SPLUNK_PASSWORD=changeme
119
ports:
1210
- 18000:8000
11+
volumes:
12+
- ./splunk.yml:/tmp/defaults/default.yml
1313
healthcheck:
1414
test: [ 'CMD', 'curl', '-f', 'http://localhost:8000' ]
1515
interval: 5s
1616
timeout: 5s
1717
retries: 20
18-
otelcollector:
19-
image: otel/opentelemetry-collector:latest
20-
container_name: otelcollector
21-
volumes:
22-
- ./otel-config.yaml:/etc/otelcol/config.yaml
2318
tarunner:
2419
build:
2520
context: ..
2621
dockerfile: debian.Dockerfile
2722
container_name: tarunner
28-
profiles:
29-
- tarunner
3023
command:
3124
- /var/ta
32-
- http://otelcollector:4318
3325
volumes:
3426
- ./Splunk_TA_nix:/var/ta

integration/otel-config.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

integration/splunk.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
splunk:
2+
hec:
3+
ssl: False

0 commit comments

Comments
 (0)