Skip to content

Commit fc20d7c

Browse files
committed
RHDEVDOCS-2521 NEW Document our JSON log entry format.
1 parent 8452ab8 commit fc20d7c

11 files changed

+457
-78
lines changed

modules/cluster-logging-exported-fields-aushape.adoc renamed to _unused_topics/cluster-logging-exported-fields-aushape.2021-06-04.adoc

File renamed without changes.

modules/cluster-logging-exported-fields-container.adoc renamed to _unused_topics/cluster-logging-exported-fields-container.2021-06-04.adoc

File renamed without changes.

modules/cluster-logging-exported-fields-default.adoc renamed to _unused_topics/cluster-logging-exported-fields-default.2021-06-04.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ from Elasticsearch and Kibana. The default fields are Top Level and `collectd*`
1111
[discrete]
1212
=== Top Level Fields
1313

14-
The top level fields are common to every application, and may be present in
14+
The top level fields are common to every application and can be present in
1515
every record. For the Elasticsearch template, top level fields populate the actual
1616
mappings of `default` in the template's mapping section.
1717

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
[id="cluster-logging-exported-fields-kubernetes_{context}"]
2+
= Kubernetes
3+
4+
The following fields can be present in the namespace for kubernetes-specific metadata.
5+
6+
== kubernetes.pod_name
7+
8+
The name of the pod
9+
10+
[horizontal]
11+
Data type:: keyword
12+
13+
14+
== kubernetes.pod_id
15+
16+
Kubernetes ID of the pod.
17+
18+
[horizontal]
19+
Data type:: keyword
20+
21+
22+
== kubernetes.namespace_name
23+
24+
The name of the namespace in Kubernetes.
25+
26+
[horizontal]
27+
Data type:: keyword
28+
29+
30+
== kubernetes.namespace_id
31+
32+
ID of the namespace in Kubernetes.
33+
34+
[horizontal]
35+
Data type:: keyword
36+
37+
38+
== kubernetes.host
39+
40+
Kubernetes node name
41+
42+
[horizontal]
43+
Data type:: keyword
44+
45+
46+
== kubernetes.master_url
47+
48+
Kubernetes Master URL
49+
50+
[horizontal]
51+
Data type:: keyword
52+
53+
54+
== kubernetes.container_name
55+
56+
The name of the container in Kubernetes.
57+
58+
[horizontal]
59+
Data type:: text
60+
61+
62+
== kubernetes.annotations
63+
64+
Annotations associated with the Kubernetes object
65+
66+
[horizontal]
67+
Data type:: group
68+
69+
70+
== kubernetes.labels
71+
72+
Labels attached to the Kubernetes object Each label name is a subfield of labels field. Each label name is de-dotted: dots in the name are replaced with underscores.
73+
74+
[horizontal]
75+
Data type:: group
76+
77+
78+
== kubernetes.event
79+
80+
The kubernetes event obtained from kubernetes master API The event is already JSON object and as whole nested under kubernetes field This description should loosely follow 'type Event' in https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#event-v1-core
81+
82+
[horizontal]
83+
Data type:: group

modules/cluster-logging-exported-fields-ovirt.adoc renamed to _unused_topics/cluster-logging-exported-fields-ovirt.2021-06-04.adoc

File renamed without changes.

modules/cluster-logging-exported-fields-rsyslog.adoc renamed to _unused_topics/cluster-logging-exported-fields-rsyslog.2021-06-04.adoc

File renamed without changes.

modules/cluster-logging-exported-fields-systemd.adoc renamed to _unused_topics/cluster-logging-exported-fields-systemd.2021-06-04.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ from Elasticsearch and Kibana.
1010

1111
Contains common fields specific to `systemd` journal.
1212
link:https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html[Applications]
13-
may write their own fields to the journal. These will be available under the
13+
can write their own fields to the journal. These will be available under the
1414
`systemd.u` namespace. `RESULT` and `UNIT` are two such fields.
1515

1616
[discrete]

modules/cluster-logging-exported-fields-tlog.adoc renamed to _unused_topics/cluster-logging-exported-fields-tlog.2021-06-04.adoc

File renamed without changes.
Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,15 @@
11
:context: cluster-logging-exported-fields
22
[id="cluster-logging-exported-fields"]
3-
= Exported fields
3+
= Log Record Fields
44
include::modules/common-attributes.adoc[]
55

66
toc::[]
77

8-
These are the fields exported by the logging system and available for searching from Elasticsearch and Kibana. Use the full, dotted field name when searching. For example, for an Elasticsearch */_search URL*, to look for a Kubernetes pod name, use `/_search/q=kubernetes.pod_name:name-of-my-pod`.
8+
The following fields can be present in log records exported by OpenShift Logging system. Although log records are typically formatted as JSON objects, the same data model can be applied to other encodings.
99

10-
The following sections describe fields that may not be present in your logging store. Not all of these fields are present in every record. The fields are grouped in the following categories:
10+
To search these fields from Elasticsearch and Kibana, use the full dotted field name when searching. For example, with an Elasticsearch */_search URL*, to look for a Kubernetes pod name, use `/_search/q=kubernetes.pod_name:name-of-my-pod`.
1111

12-
* `exported-fields-Default`
13-
* `exported-fields-systemd`
14-
* `exported-fields-kubernetes`
15-
* `exported-fields-pipeline_metadata`
16-
* `exported-fields-ovirt`
17-
* `exported-fields-aushape`
18-
* `exported-fields-tlog`
12+
// The logging system can forward JSON-formatted log entries to external systems. These log entries are formatted as a fluentd message with extra fields such as `kubernetes`. The fields exported by the logging system and available for searching from Elasticsearch and Kibana are documented at the end of this document.
1913

20-
// * `exported-fields-rsyslog`
21-
22-
23-
// The following include statements pull in the module files that comprise
24-
// the assembly. Include any combination of concept, procedure, or reference
25-
// modules required to cover the user story. You can also include other
26-
// assemblies.
27-
28-
include::modules/cluster-logging-exported-fields-default.adoc[leveloffset=+1]
29-
30-
//modules/cluster-logging-exported-fields-rsyslog.adoc[leveloffset=+1]
31-
32-
include::modules/cluster-logging-exported-fields-systemd.adoc[leveloffset=+1]
33-
34-
include::modules/cluster-logging-exported-fields-kubernetes.adoc[leveloffset=+1]
35-
36-
include::modules/cluster-logging-exported-fields-container.adoc[leveloffset=+1]
37-
38-
include::modules/cluster-logging-exported-fields-ovirt.adoc[leveloffset=+1]
39-
40-
include::modules/cluster-logging-exported-fields-aushape.adoc[leveloffset=+1]
41-
42-
include::modules/cluster-logging-exported-fields-tlog.adoc[leveloffset=+1]
14+
include::modules/cluster-logging-exported-fields-top-level-fields.adoc[leveloffset=0]
15+
include::modules/cluster-logging-exported-fields-kubernetes.adoc[leveloffset=0]

0 commit comments

Comments
 (0)