rolehippie / journalbeat

Ansible role to install and configure journalbeat
Apache License 2.0
1 stars 2 forks source link

feat: generate config from defaults definition #20

Open tboerger opened 2 days ago

tboerger commented 2 days ago

Generates a config like this by default but is fully customizable:

+++ after: /etc/journalbeat/journalbeat.yml
@@ -0,0 +1,19 @@
+name: ubuntu
+tags: []
+
+journalbeat.inputs:
+  - paths: []
+    seek: cursor
+
+output.logstash:
+  enabled: true
+  hosts: []
+
+processors:
+  - add_host_metadata: null
+  - add_cloud_metadata: null
+  - add_docker_metadata: null
+
+logging.level: warning
+logging.to_files: true
+logging.selectors: []