-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OBSDOCS-152: Restructuring log visualization docs
- Loading branch information
1 parent
aaf6253
commit 55eee92
Showing
17 changed files
with
124 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../_attributes/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../images/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
:_mod-docs-content-type: ASSEMBLY | ||
include::_attributes/common-attributes.adoc[] | ||
include::_attributes/attributes-openshift-dedicated.adoc[] | ||
[id="log-visualization"] | ||
= About log visualization | ||
:context: log-visualization | ||
|
||
toc::[] | ||
|
||
You can visualize your log data in the {product-title} web console, or the Kibana web console, depending on your deployed log storage solution. | ||
|
||
include::snippets/logging-kibana-dep-snip.adoc[] | ||
|
||
[id="log-visualization-kibana"] | ||
== About the Kibana console | ||
|
||
You can use the Kibana console to visualize logs if you are using the ElasticSearch log store on your cluster. | ||
|
||
You can configure using the Kibana console by modifying the `ClusterLogging` custom resource (CR): | ||
|
||
.Example ClusterLogging resource | ||
[source,yaml] | ||
---- | ||
apiVersion: logging.openshift.io/v1 | ||
kind: ClusterLogging | ||
metadata: | ||
name: instance | ||
namespace: openshift-logging | ||
spec: | ||
# ... | ||
visualization: <1> | ||
type: kibana | ||
kibana: | ||
resources: | ||
limits: | ||
memory: 736Mi | ||
requests: | ||
cpu: 100m | ||
memory: 736Mi | ||
replicas: 1 | ||
# ... | ||
---- | ||
<1> Settings for the visualizer, including the resource requests and limits, and the number of pod replicas. | ||
|
||
[TIP] | ||
==== | ||
If you are not using the ElasticSearch log store and as a result are not using the Kibana console, you can remove the `visualization` stanza from the `ClusterLogging` CR to save resources. | ||
==== | ||
|
||
[id="log-visualization-resource-logs"] | ||
== Viewing logs for a resource | ||
|
||
Resource logs are a default feature that provides limited log viewing capability. To enhance your log retrieving and viewing experience, it is recommended that you install the {logging}. The {logging} aggregates all the logs from your {product-title} cluster, such as node system audit logs, application container logs, and infrastructure logs, into a dedicated log store. You can then query, discover, and visualize your log data through the Kibana interface. Resource logs do not access the {logging} log store. | ||
|
||
You can view the logs for various resources, such as builds, deployments, and pods by using the {oc-first} and the web console. | ||
|
||
include::modules/viewing-resource-logs-cli-console.adoc[leveloffset=+2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
:_mod-docs-content-type: ASSEMBLY | ||
include::_attributes/common-attributes.adoc[] | ||
include::_attributes/attributes-openshift-dedicated.adoc[] | ||
[id="logging-kibana"] | ||
= Log visualization with Kibana | ||
:context: logging-kibana | ||
|
||
toc::[] | ||
|
||
You can use the Kibana console to visualize collected log data. | ||
|
||
Using Kibana, you can do the following with your data: | ||
|
||
* Search and browse the data using the *Discover* tab. | ||
* Chart and map the data using the *Visualize* tab. | ||
* Create and view custom dashboards using the *Dashboard* tab. | ||
Use and configuration of the Kibana interface is beyond the scope of this documentation. For more information, | ||
on using the interface, see the link:https://www.elastic.co/guide/en/kibana/6.8/connect-to-elasticsearch.html[Kibana documentation]. | ||
|
||
[NOTE] | ||
==== | ||
The audit logs are not stored in the internal {product-title} Elasticsearch instance by default. To view the audit logs in Kibana, you must use the xref:../../logging/config/cluster-logging-log-store.adoc#cluster-logging-elasticsearch-audit_cluster-logging-log-store[Log Forwarding API] to configure a pipeline that uses the `default` output for audit logs. | ||
==== | ||
|
||
include::modules/cluster-logging-visualizer-indices.adoc[leveloffset=+1] | ||
include::modules/cluster-logging-visualizer-kibana.adoc[leveloffset=+1] | ||
|
||
[id="logging-kibana-configuring"] | ||
== Configuring Kibana | ||
|
||
You can scale Kibana for redundancy and configure the CPU and memory for your Kibana nodes. | ||
|
||
include::modules/cluster-logging-cpu-memory.adoc[leveloffset=+2] | ||
include::modules/cluster-logging-kibana-scaling.adoc[leveloffset=+2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../snippets/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters