tarik.lahmoumi:
apply: true
shell: bash
- group: tomcat
\ No newline at end of file
+ group: tomcat
logstash::generic_resource:
docmorris_factfinder:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/dev-app01-fact-01-dm/*.*'
type: tomcat
- tags:
+ tags:
- "docmorris-ff7"
- "%{customer}"
- "%{environment}"
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
logstash::generic_resource:
docmorris_factfinder:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/dev-app02-fact-01-dm/*.*'
type: tomcat
- tags:
+ tags:
- "docmorris-ff7"
- "%{customer}"
- "%{environment}"
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
logstash::generic_resource:
docmorris_factfinder:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/prd-app01-fact-01-dm/*.*'
type: tomcat
- tags:
+ tags:
- "docmorris-ff7"
- "%{customer}"
- "%{environment}"
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
logstash::generic_resource:
docmorris_factfinder01:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/prd-app02-fact-01-dm/*.*'
type: tomcat
- "%{environment}"
docmorris_factfinder02:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/prd-app02-fact-02-dm/*.*'
type: tomcat
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
sudo::configs:
cmd_alias:
priority: "05"
content: |
Cmnd_Alias TOMCAT = /sbin/service tomcat@* *,/bin/systemctl * tomcat@*
- tomcat ALL=(ALL) NOPASSWD: TOMCAT
\ No newline at end of file
+ tomcat ALL=(ALL) NOPASSWD: TOMCAT
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
logstash::generic_resource:
docmorris_factfinder01:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/prd-app03-fact-01-dm/*.*'
type: tomcat
- tags:
+ tags:
- "docmorris-ff7"
- "%{customer}"
- "%{environment}"
docmorris_factfinder02:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/prd-app03-fact-02-dm/*.*'
type: tomcat
- tags:
+ tags:
- "docmorris-ff7"
- "%{customer}"
- "%{environment}"
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
xymon::disks:
'/var':
warnlevel: 95
- paniclevel: 98
\ No newline at end of file
+ paniclevel: 98
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
---
-infra::role: base_for_old_systems # because we don't need xymon
+infra::role: base_for_old_systems # because we don't need xymon
infra::additional_classes:
- accounts
# facter override
logstash::generic_resource:
docmorris_factfinder:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/qas-app01-fact-01-dm/*.*'
type: tomcat
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
sudo::configs:
cmd_alias:
logstash::generic_resource:
docmorris_factfinder01:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/qas-app02-fact-01-dm/*.*'
type: tomcat
- "%{environment}"
docmorris_factfinder02:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/qas-app02-fact-02-dm/*.*'
type: tomcat
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
sudo::configs:
cmd_alias:
tomcat:
priority: "10"
content: |
- tomcat ALL=(root) NOPASSWD: CMDTOMCAT
\ No newline at end of file
+ tomcat ALL=(root) NOPASSWD: CMDTOMCAT
logstash::generic_resource:
docmorris_factfinder01:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/qas-app03-fact-01-dm/*.*'
type: tomcat
- "%{environment}"
docmorris_factfinder02:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/qas-app03-fact-02-dm/*.*'
type: tomcat
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
sudo::configs:
cmd_alias:
tomcat:
priority: "10"
content: |
- tomcat ALL=(root) NOPASSWD: CMDTOMCAT
\ No newline at end of file
+ tomcat ALL=(root) NOPASSWD: CMDTOMCAT
logstash::generic_resource:
docmorris_factfinder:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/uat-app01-fact-01-dm/*.*'
type: tomcat
- tags:
+ tags:
- "docmorris-ff7"
- "%{customer}"
- "%{environment}"
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
logstash::generic_resource:
docmorris_factfinder:
resource: file
- order: 10 # Input
+ order: 10 # Input
parameters:
path: '/www/logs/tomcat/uat-app02-fact-01-dm/*.*'
type: tomcat
- tags:
+ tags:
- "docmorris-ff7"
- "%{customer}"
- "%{environment}"
condition: "if [type] == 'tomcat'"
parameters:
match:
- - "message"
- - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'
-
+ - "message"
+ - '%%{ich-trickse}{IP:ip}%%{ich-trickse}{SPACE}\[%%{ich-trickse}{HTTPDATE:logdate}%%{ich-trickse}{DATA}%%{ich-trickse}{QS:request}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:status}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:size}%%{ich-trickse}{DATA}%%{ich-trickse}{NUMBER:time}'