]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
ODT - logstash teilenews
authorOliver Böttcher <oliver.boettcher@pixelpark.com>
Wed, 19 Jul 2017 09:33:58 +0000 (11:33 +0200)
committerOliver Böttcher <oliver.boettcher@pixelpark.com>
Wed, 19 Jul 2017 09:33:58 +0000 (11:33 +0200)
customer/mbvd-odt/int-odt-daimler-com.pixelpark.net.yaml

index ac6757b12342b413b6c989aa0ce4d347f2ea212a..5d4a1cf2c02c31feb51f27de80c47682f5b62676 100644 (file)
@@ -6,6 +6,7 @@ infra::additional_classes:
   - apache::mod::remoteip
   - apache::mod::headers
   - infra::profile::cron
+  - logstash
 
 accounts::users:
   jenkins:
@@ -88,3 +89,24 @@ infra::profile::cron::cronjobs:
     minute: 0
     hour: 5
     description: um 05:00 Uhr wird die Revocationlist vom User openemm geholt. somit muss der Webserver restarted werden
+
+
+logstash::filter:
+  - journald
+
+logstash::generic_resource:
+  mbvd-teilenews-service:
+    resource: pipe
+    order: 10
+    parameters:
+      command: '/bin/journalctl -o cat -fl -u mbvd-teilenews-service.service'
+      type: webapp
+      tags:
+        - 'int'
+        - "%{customer}"
+        - "mbvd-teilenews-service"
+      codec:
+        type: multiline
+        what: previous
+        pattern: "^%%{ich-trickse}{TIMESTAMP_ISO8601}"
+        negate: true