]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
fbb-db mysql logstash fix
authorsambufe <samuel.bufe@publicispixelpark.de>
Mon, 31 Jul 2017 08:19:44 +0000 (10:19 +0200)
committersambufe <samuel.bufe@publicispixelpark.de>
Mon, 31 Jul 2017 08:19:44 +0000 (10:19 +0200)
customer/fbb-db/common.yaml

index e76522830494c79042387eaaa5980d8eeff521c1..f8249339cf6eb3ee6155629d08c352dbaa0492e4 100644 (file)
@@ -37,34 +37,3 @@ accounts::users:
 #    owner: root
 #    group: root
 #    mode: '0755'
-
-logstash::generic_resource:
-  mysql_error:
-    resource: file
-    order: 10  # Input
-    parameters:
-      path: 
-        - '/var/log/mariadb/mariadb.log'
-        - '/var/log/mariadb/mysql.log'
-        - '/var/log/mariadb/error.log'
-        - '/var/log/mysql/mysql.log'
-        - '/var/log/mysql/mariadb.log'
-        - '/var/log/mysql/error.log'
-        - '/var/log/mysqld.log'
-      type: mysql-error
-      tags:
-        - "%{customer}"
-        - "%{tier}"
-      codec:
-        type: multiline
-        what: previous
-        negate: true
-        pattern: '%%{ich-trickse}{TIMESTAMP_ISO8601:time} *%%{ich-trickse}{INT:threadid}? *\[%%{ich-trickse}{WORD:loglevel}\] *%%{ich-trickse}{GREEDYDATA:restmessage}'
-  mysql_filter:
-    condition: 'if [type] == "mysql-error"'
-    resource: grok
-    order: 40  # Filter
-    parameters:
-      match:
-        - message
-        - '%%{ich-trickse}{TIMESTAMP_ISO8601:time} *%%{ich-trickse}{INT:threadid}? *\[%%{ich-trickse}{WORD:loglevel}\] *%%{ich-trickse}{GREEDYDATA:restmessage}'