Skip to content

Instantly share code, notes, and snippets.

@b44rawat
Created October 22, 2022 07:25
Show Gist options
  • Save b44rawat/909ce2512749a4b649dd54a216eeecee to your computer and use it in GitHub Desktop.
Save b44rawat/909ce2512749a4b649dd54a216eeecee to your computer and use it in GitHub Desktop.
Coralogix & filebeat integration for o365 Logs
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: coralogix-filebeat
namespace: kube-system
labels:
k8s-app: filebeat
spec:
replicas: 1
selector:
matchLabels:
k8s-app: filebeat
template:
metadata:
labels:
k8s-app: filebeat
spec:
terminationGracePeriodSeconds: 30
containers:
- name: filebeat
image: docker.elastic.co/beats/filebeat:8.3.3
args: [
"-c", "/usr/share/filebeat/filebeat.yml",
"-e",
]
securityContext:
runAsUser: 0
volumeMounts:
- name: config
mountPath: /usr/share/filebeat/filebeat.yml
readOnly: true
subPath: filebeat.yml
- name: o365config
mountPath: /usr/share/filebeat/modules.d/o365.yml
readOnly: true
subPath: o365.yml
volumes:
- name: config
configMap:
name: filebeat-configmap
- name: o365config
configMap:
name: o365-configmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment