apply: true
holger.voigt:
apply: true
+
+infra::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}"
+ mysql_filter_1:
+ condition: 'if [type] == "mysql-error"'
+ resource: multiline
+ order: 39 # Filter
+ parameters:
+ pattern: '^%%{ich-trickse}{NUMBER} *%%{ich-trickse}{NUMBER}'
+ negate: 'true'
+ what: 'previous'
+ mysql_filter_2:
+ 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:message}'
\ No newline at end of file
infra::additional_classes:
- infra::profile::mysql_server
- infra::profile::postfix
+ - logstash
mysql::server::root_password: ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQEwDQYJKoZIhvcNAQEBBQAEggEASNMwg7N9Azc0Tr7mFpHm2dr8b7M9akSH/WKnkBM5EzNGen9tVHjBt3GDoo73ziWy9HETeZJi4TT0eflkS2E462YuM/k1W2RkVfuz1LvdN4ZOVWRyhc9eRkRd3a/2DKnoqDcJfZ0MZ0VSIqOAk1j8nc2OMPNFJMf5OufPQJR8XQb618LpwLltesDanRFPhssTnc+wt8PhbAG/63419JPPMiD4fcwu6qZw/899rDU4gDP8IQpYPOG2oLw4J6kUAtyUGWp2iAaWtJbM3/u7sdc10WNhG+dD1pnLM7Q8D/7GyaFgxRu5RhQCo9UXqlotC/kNQgKURpKPUMBbjdHesAzrVjBMBgkqh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