Send kubernetes logs to splunk using fluentd
Update td-agent.conf
<match **>
# Other settings omitted for brevity
server your-splunk-endpoint-here
token your-splunk-hec-token
</match>
Create config-map
for td-agent.conf
./create-config-map.sh
docker build -t ziyasal/k8splunk:{tag} .
kubectl create -f k8splunk-ds.yaml
kubectl create -f splunk-rc.yaml -f splunk-svc.yaml
image:
repository: your-repository
# and
pull:
secretName : your-secret-name
helm package k8splunk
helm install k8splunk-{your version}.tgz