From 6e75f95fe6a4210126df62fd674a2f2b51434954 Mon Sep 17 00:00:00 2001 From: sambufe Date: Mon, 20 Nov 2017 11:29:51 +0100 Subject: [PATCH] DNPK-3421 logstash --- .../cms-odt-daimler-com.pixelpark.net.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/customer/mbvd-odt/cms-odt-daimler-com.pixelpark.net.yaml b/customer/mbvd-odt/cms-odt-daimler-com.pixelpark.net.yaml index cd9ff615..bc48761d 100644 --- a/customer/mbvd-odt/cms-odt-daimler-com.pixelpark.net.yaml +++ b/customer/mbvd-odt/cms-odt-daimler-com.pixelpark.net.yaml @@ -13,6 +13,51 @@ infra::additional_classes: - apache::mod::proxy_ajp - apache::mod::headers - apache::mod::remoteip + - logstash + +logstash::drop_grokparsefailure: false +logstash::generic_resource: + catalina: + resource: file + order: 10 # Input + parameters: + path: '/var/lib/tomcat/catalina/odt-cms/logs/catalina.out' + type: tomcat + tags: + - "odt-cms" + - "%{customer}" + - "%{environment}" + codec: + type: multiline + what: previous + pattern: "^%{literal('%'){MONTH} %{literal('%'){MONTHDAY}" + negate: true + opencms: + resource: file + order: 10 # Input + parameters: + path: '/var/lib/tomcat/catalina/odt-cms/webapps/ROOT/WEB-INF/logs/opencms.log' + type: opencms + tags: + - "odt-cms" + - "%{customer}" + - "%{environment}" + codec: + type: multiline + what: previous + pattern: "^%{literal('%'){MONTHDAY} %{literal('%'){MONTH}" + negate: true + tomcat_access: + resource: file + order: 10 # Input + parameters: + path: '/var/lib/tomcat/catalina/odt-cms/logs/localhost_access_log.*' + type: apache-access + tags: + - "odt-cms" + - "%{customer}" + - "%{environment}" + apache::mod:proxy: proxy_via: 'Off' -- 2.39.5