Skip to content

Commit 3cf9bce

Browse files
authored
Merge pull request #67049 from abrennan89/OBSDOCS-460-storage
[OBSDOCS-152] Collate storage docs and remove duplicated files
2 parents 504bb7e + 189405f commit 3cf9bce

29 files changed

+214
-360
lines changed

_topic_maps/_topic_map.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2544,8 +2544,6 @@ Topics:
25442544
Dir: config
25452545
Distros: openshift-enterprise,openshift-origin
25462546
Topics:
2547-
- Name: Configuring the log store
2548-
File: cluster-logging-log-store
25492547
- Name: Configuring CPU and memory limits for Logging components
25502548
File: cluster-logging-memory
25512549
- Name: Using tolerations to control Logging pod placement
@@ -2554,8 +2552,6 @@ Topics:
25542552
File: cluster-logging-moving-nodes
25552553
- Name: Configuring systemd-journald for Logging
25562554
File: cluster-logging-systemd
2557-
- Name: Logging using LokiStack
2558-
File: cluster-logging-loki
25592555
- Name: Log collection and forwarding
25602556
Dir: log_collection_forwarding
25612557
Topics:
@@ -2569,6 +2565,17 @@ Topics:
25692565
File: cluster-logging-collector
25702566
- Name: Collecting and storing Kubernetes events
25712567
File: cluster-logging-eventrouter
2568+
- Name: Log storage
2569+
Dir: log_storage
2570+
Topics:
2571+
- Name: About log storage
2572+
File: about-log-storage
2573+
- Name: Installing log storage
2574+
File: installing-log-storage
2575+
- Name: Configuring the LokiStack log store
2576+
File: cluster-logging-loki
2577+
- Name: Configuring the Elasticsearch log store
2578+
File: logging-config-es-store
25722579
- Name: Logging alerts
25732580
Dir: logging_alerts
25742581
Topics:

_topic_maps/_topic_map_osd.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,8 +1055,6 @@ Topics:
10551055
- Name: Configuring your Logging deployment
10561056
Dir: config
10571057
Topics:
1058-
- Name: Configuring the log store
1059-
File: cluster-logging-log-store
10601058
- Name: Configuring CPU and memory limits for Logging components
10611059
File: cluster-logging-memory
10621060
- Name: Using tolerations to control Logging pod placement
@@ -1065,8 +1063,6 @@ Topics:
10651063
File: cluster-logging-moving-nodes
10661064
#- Name: Configuring systemd-journald and Fluentd
10671065
# File: cluster-logging-systemd
1068-
- Name: Logging using LokiStack
1069-
File: cluster-logging-loki
10701066
- Name: Log collection and forwarding
10711067
Dir: log_collection_forwarding
10721068
Topics:
@@ -1080,6 +1076,17 @@ Topics:
10801076
File: cluster-logging-collector
10811077
- Name: Collecting and storing Kubernetes events
10821078
File: cluster-logging-eventrouter
1079+
- Name: Log storage
1080+
Dir: log_storage
1081+
Topics:
1082+
- Name: About log storage
1083+
File: about-log-storage
1084+
- Name: Installing log storage
1085+
File: installing-log-storage
1086+
- Name: Configuring the LokiStack log store
1087+
File: cluster-logging-loki
1088+
- Name: Configuring the Elasticsearch log store
1089+
File: logging-config-es-store
10831090
- Name: Logging alerts
10841091
Dir: logging_alerts
10851092
Topics:

_topic_maps/_topic_map_rosa.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,8 +1247,6 @@ Topics:
12471247
- Name: Configuring your Logging deployment
12481248
Dir: config
12491249
Topics:
1250-
- Name: Configuring the log store
1251-
File: cluster-logging-log-store
12521250
- Name: Configuring CPU and memory limits for Logging components
12531251
File: cluster-logging-memory
12541252
- Name: Using tolerations to control Logging pod placement
@@ -1257,8 +1255,6 @@ Topics:
12571255
File: cluster-logging-moving-nodes
12581256
#- Name: Configuring systemd-journald and Fluentd
12591257
# File: cluster-logging-systemd
1260-
- Name: Logging using LokiStack
1261-
File: cluster-logging-loki
12621258
- Name: Log collection and forwarding
12631259
Dir: log_collection_forwarding
12641260
Topics:
@@ -1272,6 +1268,17 @@ Topics:
12721268
File: cluster-logging-collector
12731269
- Name: Collecting and storing Kubernetes events
12741270
File: cluster-logging-eventrouter
1271+
- Name: Log storage
1272+
Dir: log_storage
1273+
Topics:
1274+
- Name: About log storage
1275+
File: about-log-storage
1276+
- Name: Installing log storage
1277+
File: installing-log-storage
1278+
- Name: Configuring the LokiStack log store
1279+
File: cluster-logging-loki
1280+
- Name: Configuring the Elasticsearch log store
1281+
File: logging-config-es-store
12751282
- Name: Logging alerts
12761283
Dir: logging_alerts
12771284
Topics:

logging/cluster-logging-deploying.adoc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,23 @@ endif::[]
2424

2525
include::snippets/logging-fluentd-dep-snip.adoc[]
2626

27+
//Installing the Red Hat OpenShift Logging Operator via webconsole
2728
include::modules/cluster-logging-deploy-console.adoc[leveloffset=+1]
2829

2930
[role="_additional-resources"]
3031
.Additional resources
3132
* xref:../logging/log_collection_forwarding/cluster-logging-collector.adoc#cluster-logging-collector[Configuring the logging collector]
3233
33-
include::modules/cluster-logging-deploy-cli.adoc[leveloffset=+1]
34+
include::modules/logging-clo-gui-install.adoc[leveloffset=+1]
3435

35-
[id="cluster-logging-deploying-es-operator"]
36-
== Installing the Elasticsearch Operator
36+
include::modules/logging-clo-cli-install.adoc[leveloffset=+1]
3737

38-
include::snippets/logging-elastic-dep-snip.adoc[]
39-
include::modules/logging-es-storage-considerations.adoc[leveloffset=+2]
40-
include::modules/logging-install-es-operator.adoc[leveloffset=+2]
38+
include::modules/cluster-logging-deploy-cli.adoc[leveloffset=+1]
4139

4240
[role="_additional-resources"]
4341
.Additional resources
4442
* xref:../operators/admin/olm-adding-operators-to-cluster.adoc#olm-installing-operators-from-operatorhub_olm-adding-operators-to-a-cluster[Installing Operators from the OperatorHub]
45-
* xref:../logging/config/cluster-logging-log-store.adoc#cluster-logging-removing-unused-components-if-no-elasticsearch_cluster-logging-log-store[Removing unused components if you do not use the default Elasticsearch log store]
43+
* xref:../logging/log_storage/logging-config-es-store.adoc#cluster-logging-removing-unused-components-if-no-elasticsearch_logging-config-es-store[Removing unused components if you do not use the default Elasticsearch log store]
4644
4745
[id="cluster-logging-deploying-postinstallation"]
4846
== Postinstallation tasks

logging/cluster-logging.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The Operators are responsible for deploying, upgrading, and maintaining the {log
1717

1818
[NOTE]
1919
====
20-
Because the internal {product-title} Elasticsearch log store does not provide secure storage for audit logs, audit logs are not stored in the internal Elasticsearch instance by default. If you want to send the audit logs to the default internal Elasticsearch log store, for example to view the audit logs in Kibana, you must use the Log Forwarding API as described in xref:../logging/config/cluster-logging-log-store.adoc#cluster-logging-elasticsearch-audit_cluster-logging-log-store[Forward audit logs to the log store].
20+
Because the internal {product-title} Elasticsearch log store does not provide secure storage for audit logs, audit logs are not stored in the internal Elasticsearch instance by default. If you want to send the audit logs to the default internal Elasticsearch log store, for example to view the audit logs in Kibana, you must use the Log Forwarding API as described in xref:../logging/log_storage/logging-config-es-store.adoc#cluster-logging-elasticsearch-audit_logging-config-es-store[Forward audit logs to the log store].
2121
====
2222

2323
include::modules/logging-architecture-overview.adoc[leveloffset=+1]
@@ -46,10 +46,6 @@ include::modules/cluster-logging-export-fields.adoc[leveloffset=+2]
4646

4747
For information, see xref:../logging/cluster-logging-exported-fields.adoc#cluster-logging-exported-fields[About exporting fields].
4848

49-
include::modules/cluster-logging-about-logstore.adoc[leveloffset=+2]
50-
51-
For information, see xref:../logging/config/cluster-logging-log-store.adoc#cluster-logging-log-store[Configuring the log store].
52-
5349
include::modules/cluster-logging-eventrouter-about.adoc[leveloffset=+2]
5450

5551
For information, see xref:../logging/log_collection_forwarding/cluster-logging-eventrouter.adoc#cluster-logging-eventrouter[Collecting and storing Kubernetes events].

logging/log_collection_forwarding/log-forwarding.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ By default, the {logging} sends container and infrastructure logs to the default
5959

6060
[NOTE]
6161
====
62-
To send audit logs to the internal Elasticsearch log store, use the Cluster Log Forwarder as described in xref:../../logging/config/cluster-logging-log-store.adoc#cluster-logging-elasticsearch-audit_cluster-logging-log-store[Forward audit logs to the log store].
62+
To send audit logs to the internal Elasticsearch log store, use the Cluster Log Forwarder as described in xref:../../logging/log_storage/logging-config-es-store.adoc#cluster-logging-elasticsearch-audit_logging-config-es-store[Forwarding audit logs to the log store].
6363
====
6464

6565
include::modules/cluster-logging-collector-log-forwarding-about.adoc[leveloffset=+1]

logging/log_storage/_attributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../_attributes/
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
include::_attributes/attributes-openshift-dedicated.adoc[]
4+
[id="about-log-storage"]
5+
= About log storage
6+
:context: about-log-storage
7+
8+
toc::[]
9+
10+
You can use an internal Loki or Elasticsearch log store on your cluster for storing logs, or you can use a xref:../../logging/log_collection_forwarding/log-forwarding.adoc#logging-create-clf_log-forwarding[`ClusterLogForwarder` custom resource (CR)] to forward logs to an external store.
11+
12+
[id="log-storage-overview-types"]
13+
== Log storage types
14+
15+
Loki is a horizontally scalable, highly available, multi-tenant log aggregation system offered as an alternative to Elasticsearch as a log store for the {logging}.
16+
17+
Elasticsearch indexes incoming log records completely during ingestion. Loki only indexes a few fixed labels during ingestion and defers more complex parsing until after the logs have been stored. This means Loki can collect logs more quickly.
18+
19+
include::modules/cluster-logging-about-es-logstore.adoc[leveloffset=+2]
20+
21+
[id="log-storage-overview-querying"]
22+
== Querying log stores
23+
24+
You can query Loki by using the link:https://grafana.com/docs/loki/latest/logql/[LogQL log query language].
25+
26+
[role="_additional-resources"]
27+
[id="additional-resources_log-storage-overview"]
28+
== Additional resources
29+
* link:https://grafana.com/docs/loki/latest/get-started/components/[Loki components documentation]
30+
* link:https://loki-operator.dev/docs/object_storage.md/[Loki Object Storage documentation]

logging/cluster-logging-loki.adoc renamed to logging/log_storage/cluster-logging-loki.adoc

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
11
:_mod-docs-content-type: ASSEMBLY
22
:context: cluster-logging-loki
33
[id="cluster-logging-loki"]
4-
= Logging using LokiStack
4+
= Configuring the LokiStack log store
55
include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

99
In {logging} documentation, _LokiStack_ refers to the {logging} supported combination of Loki and web proxy with {product-title} authentication integration. LokiStack's proxy uses {product-title} authentication to enforce multi-tenancy. _Loki_ refers to the log store as either the individual component or an external store.
1010

11-
Loki is a horizontally scalable, highly available, multi-tenant log aggregation system currently offered as an alternative to Elasticsearch as a log store for the {logging}. Elasticsearch indexes incoming log records completely during ingestion. Loki only indexes a few fixed labels during ingestion and defers more complex parsing until after the logs have been stored. This means Loki can collect logs more quickly. You can query Loki by using the link:https://grafana.com/docs/loki/latest/logql/[LogQL log query language].
12-
13-
include::modules/loki-deployment-sizing.adoc[leveloffset=+1]
14-
15-
//include::modules/cluster-logging-loki-deploy.adoc[leveloffset=+1]
16-
17-
//include::modules/logging-deploy-loki-console.adoc[leveloffset=+1]
18-
1911
include::modules/logging-creating-new-group-cluster-admin-user-role.adoc[leveloffset=+1]
2012

21-
include::modules/logging-loki-gui-install.adoc[leveloffset=+1]
22-
23-
include::modules/logging-clo-gui-install.adoc[leveloffset=+1]
24-
25-
include::modules/logging-loki-cli-install.adoc[leveloffset=+1]
26-
27-
include::modules/logging-clo-cli-install.adoc[leveloffset=+1]
28-
29-
include::modules/configuring-log-storage-cr.adoc[leveloffset=+1]
30-
3113
include::modules/logging-loki-storage.adoc[leveloffset=+1]
3214

3315
include::modules/logging-loki-storage-aws.adoc[leveloffset=+2]
@@ -54,8 +36,7 @@ include::modules/logging-loki-reliability-hardening.adoc[leveloffset=+1]
5436
.Additional resources
5537
* link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#podantiaffinity-v1-core[`PodAntiAffinity` v1 core Kubernetes documentation]
5638
* link:https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity[Assigning Pods to Nodes Kubernetes documentation]
57-
58-
* xref:../nodes/scheduling/nodes-scheduler-pod-affinity.adoc#nodes-scheduler-pod-affinity[Placing pods relative to other pods using affinity and anti-affinity rules]
39+
* xref:../../nodes/scheduling/nodes-scheduler-pod-affinity.adoc#nodes-scheduler-pod-affinity[Placing pods relative to other pods using affinity and anti-affinity rules]
5940
6041
include::modules/logging-loki-zone-aware-rep.adoc[leveloffset=+1]
6142

@@ -64,11 +45,10 @@ include::modules/logging-loki-zone-fail-recovery.adoc[leveloffset=+2]
6445
[role="_additional-resources"]
6546
.Additional resources
6647
* link:https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#spread-constraint-definition[Topology spread constraints Kubernetes documentation]
67-
6848
* link:https://kubernetes.io/docs/setup/best-practices/multiple-zones/#storage-access-for-zones[Kubernetes storage documentation].
6949
7050
ifdef::openshift-enterprise[]
71-
* xref:../nodes/scheduling/nodes-scheduler-pod-topology-spread-constraints.adoc#nodes-scheduler-pod-topology-spread-constraints-configuring[Controlling pod placement by using pod topology spread constraints]
51+
* xref:../../nodes/scheduling/nodes-scheduler-pod-topology-spread-constraints.adoc#nodes-scheduler-pod-topology-spread-constraints-configuring[Controlling pod placement by using pod topology spread constraints]
7252
endif::[]
7353

7454
include::modules/logging-loki-log-access.adoc[leveloffset=+1]
@@ -77,7 +57,7 @@ include::modules/logging-loki-log-access.adoc[leveloffset=+1]
7757
.Additional resources
7858

7959
ifdef::openshift-enterprise[]
80-
xref:../authentication/using-rbac.adoc[Using RBAC to define and apply permissions]
60+
* xref:../../authentication/using-rbac.adoc[Using RBAC to define and apply permissions]
8161
endif::[]
8262

8363
include::modules/logging-loki-retention.adoc[leveloffset=+1]

logging/log_storage/images

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../images/

0 commit comments

Comments
 (0)