Skip to content

Commit

Permalink
Merge pull request #177 from The-smooth-operator/audisp-json
Browse files Browse the repository at this point in the history
forward audisp-json logs to MozDef
  • Loading branch information
the-smooth-operator committed Mar 20, 2019
2 parents 1112484 + 5417029 commit 8a0837a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
@@ -0,0 +1,26 @@
kind: ConfigMap
metadata:
name: fluentd-extra-conf
namespace: logging
apiVersion: v1
data:
audisp-json.conf: |+
<source>
@type tail
@id in_tail_audisp-json
path /var/log/audisp-json.log
pos_file /var/log/audisp-json.log.pos
tag audisp-json
read_from_head true
<parse>
@type none
</parse>
<filter audisp-json>
@type concat
key audisp-json
multiline_start_regexp /^\{/
multiline_end_regexp /^\{/
#time_format %Y-%m-%dT%H:%M:%S+%z
</filter>
</source>
10 changes: 9 additions & 1 deletion cluster-conf/prod/us-west-2/graylog/21-fluentd-mozdef.yml
Expand Up @@ -22,7 +22,7 @@ spec:
serviceAccountName: fluentd
containers:
- name: fluentd
image: thesmoothoperator/v1.3-fluent-plugin-sns:3.2.5
image: itsre/fluentd-k8s-mozdef:1.0
imagePullPolicy: Always
env:
- name: FLUENT_UID
Expand All @@ -32,6 +32,7 @@ spec:
resources:
limits:
memory: 200Mi
cpu: 500m
requests:
cpu: 100m
memory: 200Mi
Expand All @@ -41,6 +42,9 @@ spec:
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: extra-conf
mountPath: /fluentd/etc/conf.d
readOnly: true
terminationGracePeriodSeconds: 30
volumes:
- name: varlog
Expand All @@ -49,3 +53,7 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: extra-conf
configMap:
name: fluentd-extra-conf

0 comments on commit 8a0837a

Please sign in to comment.