Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control plane logs #235

Merged
merged 6 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions docs/shipping/Containers/control-plane.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
id: Control-plane
title: Control Plane
overview: Control Plane is a hybrid platform that integrates multiple cloud services, such as AWS, GCP, and Azure, providing a unified and flexible environment for developers to build and manage backend applications and services across various public and private clouds.
product: ['logs']
os: ['windows', 'linux']
filters: ['Containers', 'Most Popular']
nico-shishkin marked this conversation as resolved.
Show resolved Hide resolved
logo: https://logzbucket.s3.eu-west-1.amazonaws.com/logz-docs/shipper-logos/control-plane.png
logs_dashboards: []
logs_alerts: []
logs2metrics: []
metrics_dashboards: []
metrics_alerts: []
drop_filter: []
---

## Logs

Control Plane is a hybrid platform that integrates multiple cloud services, such as AWS, GCP, and Azure, providing a unified and flexible environment for developers to build and manage backend applications and services across various public and private clouds.

Deploy this integration to ship all `Org` logs from your Control Plane account to Logz.io.

**Before you begin, you'll need**:

* Control Plane account



### Store the Logz.io secret as an Opaque Secret

1. Log in to [Control Plane Console UI](https://console.cpln.io/).
2. Navigate to **Secrets**.
3. Create a new secret.
4. Give the secret a name.
5. Select `Opaque` from the **Secret Type list**.
6. Paste `<<LOG-SHIPPING-TOKEN>>` into the content text box.
7. Click **Create**.

{@include: ../../_include/log-shipping/log-shipping-token.html}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placeholder will probably look ok in the app, but it looks a little funny in the public docs, because it looks just like this <> without any explanation that this is a logzio log shipping token.


### Enable Control Plane logging

#### Using the UI Console

1. Open the [Control Plane Console UI](https://console.cpln.io/).
2. Click on **Org** in the left menu.
3. Click **External Logs** in the middle context menu.
4. Select `Logz.io` and fill out the required fields.
5. Select the Opaque secret created to authenticate to Logz.io.
6. Click **Save**.

#### Using the CLI

1. Prepare the YAML manifest:

```yaml
kind: org
name: ORG_NAME
spec:
logging:
logzio:
credentials: //secret/<<LOG-SHIPPING-TOKEN>>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? If we stored the shipping token as a secret, I don't think that you're expected to write it explicitly here, I would assume that you'd need to write the name of the opaque secret you created in the first step.
Can you please check this part?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, it's the secret's name that we need to specify, not the token!

listenerHost: <<LISTENER-HOST>>
```

Replace `ORG_NAME` with your organization's name.

{@include: ../../_include/log-shipping/log-shipping-token.html}

{@include: ../../_include/log-shipping/listener-var.html}

2. Save the file, for example, `logging-config.yaml`.

3. Open your command line interface (CLI) and navigate to the directory where the `logging-config.yaml` file is saved.

4. Execute the following command, replacing `ORG_NAME` with your organization's name:

```shell
cpln org patch ORG_NAME -f logging-config.yaml
```


#### Check Logz.io for your logs

Spin up your Docker containers if you haven't done so already. Give your logs some time to get from your system to ours, and then open [Open Search Dashboards](https://app.logz.io/#/dashboard/osd).

If you still don't see your logs, see [log shipping troubleshooting]({{site.baseurl}}/user-guide/log-shipping/log-shipping-troubleshooting.html).
2 changes: 1 addition & 1 deletion static/manifest.json

Large diffs are not rendered by default.