Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 3235851

Browse files
author
Chris Wiechmann
committed
Added a version for filebeat and Audit-Log
to make it possible to validate this version during upgrade
1 parent 3305ff8 commit 3235851

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

filebeat/filebeat.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ filebeat.inputs:
1515
logtype: openlog
1616
gatewayName: ${GATEWAY_NAME:"API-Gateway"}
1717
gatewayRegion: ${GATEWAY_REGION:"N/A"}
18+
version: "1"
1819

1920
- type: log
2021
paths: ["/var/log/trace/*.trc"]
@@ -27,6 +28,7 @@ filebeat.inputs:
2728
logtype: trace
2829
gatewayName: ${GATEWAY_NAME:"API-Gateway"}
2930
gatewayRegion: ${GATEWAY_REGION:"N/A"}
31+
version: "1"
3032

3133
- type: log
3234
paths: ["/var/log/events/*.log", "/var/log/events/processed/*.log.PROCESSED"]
@@ -38,6 +40,19 @@ filebeat.inputs:
3840
logtype: events
3941
gatewayName: ${GATEWAY_NAME:"API-Gateway"}
4042
gatewayRegion: ${GATEWAY_REGION:"N/A"}
43+
version: "1"
44+
45+
- type: log
46+
paths: ["/var/log/audit/*.log"]
47+
json.keys_under_root: true
48+
json.overwrite_keys: false
49+
json.add_error_key: true
50+
fields_under_root: true
51+
fields:
52+
logtype: domainaudit
53+
gatewayName: ${GATEWAY_NAME:"API-Gateway"}
54+
gatewayRegion: ${GATEWAY_REGION:"N/A"}
55+
version: "1"
4156

4257
# Required for Trace-Messages logged by the API-Gateway
4358
processors:
@@ -49,8 +64,9 @@ output.logstash:
4964

5065
monitoring:
5166
enabled: true
52-
# Get the Cluster-ID (cluster_uuid) with this simple query: http://elasticsearch1:9200/
53-
# This links this filebeat instance to the Cluster with the given ID
67+
# Get the Cluster-ID (cluster_uuid) with this simple query: https://elasticsearch1:9200/
68+
# This links this filebeat instance to the Cluster with the given ID to enable monitoring
69+
# It's also required to setup the beats_system user
5470
cluster_uuid: ${ELASTICSEARCH_CLUSTER_UUID:ELASTICSEARCH_CLUSTER_UUID-NOT-SET}
5571
elasticsearch:
5672
hosts: ${ELASTICSEARCH_HOSTS}

0 commit comments

Comments
 (0)