Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bugthesystem/k8splunk
Send kubernetes logs to splunk using fluentd
https://github.com/bugthesystem/k8splunk
fluentd helm kubernetes logging splunk
Last synced: 4 months ago
JSON representation
Send kubernetes logs to splunk using fluentd
- Host: GitHub
- URL: https://github.com/bugthesystem/k8splunk
- Owner: bugthesystem
- License: mit
- Created: 2017-03-03T19:00:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T19:35:14.000Z (about 7 years ago)
- Last Synced: 2024-04-28T08:41:40.620Z (10 months ago)
- Topics: fluentd, helm, kubernetes, logging, splunk
- Language: Smarty
- Homepage:
- Size: 15.6 KB
- Stars: 8
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k8splunk
> Send [kubernetes](https://github.com/kubernetes/kubernetes) logs to [splunk](https://github.com/splunk) using [fluentd](https://github.com/fluent/fluentd)
## Before start
**Update [td-agent.conf](https://github.com/ziyasal/k8splunk/blob/master/td-agent.conf#L287)**```sh
# Other settings omitted for brevity
server your-splunk-endpoint-here
token your-splunk-hec-token```
**Create `config-map` for `td-agent.conf`**
```sh
./create-config-map.sh
```## Deploy Manually
### build Docker image
```sh
docker build -t ziyasal/k8splunk:{tag} .
```### Deploy Daemonset
```sh
kubectl create -f k8splunk-ds.yaml
```### To deploy local splunk (demo purpose only)
**:warning:** Demo splunk installation requires to configure http event collector to receive logs ([setup link](http://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector))
```sh
kubectl create -f splunk-rc.yaml -f splunk-svc.yaml
```## Deploy via `Helm`
:warning: Required changes in [values.yaml](https://github.com/ziyasal/k8splunk/blob/master/helm-chart/k8splunk/values.yaml#L5) file;```yaml
image:
repository: your-repository
# andpull:
secretName : your-secret-name
```### Package
```sh
helm package k8splunk
```### Install chart
```sh
helm install k8splunk-{your version}.tgz
```