Skip to content

Commit 5090a5c

Browse files
authored
Merge pull request #93 from lzap/foreman1
Initial version - foreman namespace/template
2 parents 9444d48 + e8b361c commit 5090a5c

File tree

5 files changed

+132
-0
lines changed

5 files changed

+132
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.template.json
33
*~
44
templates/*/*.asciidoc
5+
scripts/*.pyc
56

67
# IDEA specific
78
*.iml

namespaces/foreman.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
2+
namespace:
3+
name: foreman
4+
type: group
5+
description: >
6+
Contains common fields specific to Foreman / Satellite 6 deployment.
7+
fields:
8+
- name: foreman_logger
9+
type: keyword
10+
description: >
11+
Ruby on Rails logger name, one of: app, sql, permissions, audit, templates, ldap, telemetry, notifications or blob. Loggers can be individually enabled or disabled. For more info see Foreman's setting.yaml file.
12+
13+
- name: foreman_login
14+
type: keyword
15+
description: >
16+
User login name who created the event.
17+
18+
- name: foreman_admin
19+
type: boolean
20+
description: >
21+
Whether user who created the event is super admin or regular user.
22+
23+
- name: org_id
24+
type: long
25+
description: >
26+
Organization database ID which created the event, if set.
27+
28+
- name: loc_id
29+
type: long
30+
description: >
31+
Location database ID which created the event, if set.
32+
33+
- name: remote_ip
34+
type: ip
35+
description: >
36+
IPv4 address of remote client which created the event, if available.
37+
38+
- name: request
39+
type: keyword
40+
description: >
41+
format: [a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]
42+
UUID of web request for events created in web request context.
43+
44+
- name: session
45+
type: keyword
46+
description: >
47+
format: [a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]
48+
UUID of web session for events created in web request context. For session-less requests (e.g. API call) new session UUID is generated every time.
49+
50+
- name: exception
51+
type: group
52+
description: >
53+
Contains common fields specific to Ruby (Ruby on Rails) exceptions.
54+
fields:
55+
- name: message
56+
type: text
57+
doc_values: false
58+
description: >
59+
Exception message
60+
61+
- name: class
62+
type: keyword
63+
description: >
64+
Ruby exception class.
65+
66+
- name: backtrace
67+
type: text
68+
doc_values: false
69+
description: >
70+
Full exception backtrace (multiline text).
71+
72+
- name: template
73+
type: group
74+
description: >
75+
Contains common fields specific to template renderers. Events only appear when "blob" logger is enabled. Rendered template contents is part of log message.
76+
fields:
77+
- name: name
78+
type: keyword
79+
description: >
80+
Template name which was used to render content.
81+
82+
- name: digest
83+
type: keyword
84+
description: >
85+
SHA256 of the rendered template contents.
86+
87+
- name: host_name
88+
type: keyword
89+
description: >
90+
Host name which was associated with the template, if present.
91+
92+
- name: host_id
93+
type: long
94+
description: >
95+
Host database ID which was associated with the template, if present.

templates/foreman/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.PHONY: all clean docs
2+
3+
all: docs
4+
python ../../scripts/generate_template.py template.yml ../../namespaces/
5+
6+
clean:
7+
rm *.json *.asciidoc
8+
9+
docs:
10+
python ../../scripts/generate_template.py template.yml ../../namespaces/ --docs

templates/foreman/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# viaq collectd index templates for ElasticSearch
2+
3+
The template files are automatically generated.
4+
Please _do not edit_ the files directly.
5+
6+
In order to edit the template please modify [template.yml](template.yml) and
7+
the respective namespace files referenced there.
8+
9+
To rebuild the template, run:
10+
> make
11+
12+
# Contents
13+
14+
The template contains mappings for Foreman deployment.

templates/foreman/template.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
skeleton_path: ../skeleton.json
2+
skeleton_index_pattern_path: ../skeleton-index-pattern.json
3+
4+
elasticsearch_template:
5+
name: org.foreman.viaq-cdm
6+
index_pattern: "project.foreman-*"
7+
order: 20
8+
9+
namespaces:
10+
- foreman.yml
11+
- systemd.yml
12+
- pipeline_metadata.yml

0 commit comments

Comments
 (0)