You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Available log destinations for application logging in Nais.
5
+
tags: [reference, logging]
6
+
conditional: [tenant, nav]
7
+
---
8
+
9
+
# Log Destinations
10
+
11
+
Log destinations are the different places where logs can be sent to. All environments have a default log destination, please see the [environments overview](../../../workloads/reference/environments.md), but you can configure your application to send logs to other destinations as well.
12
+
13
+
## Configuration
14
+
15
+
To configure a log destination for your application, add the following configuration to your `Application` resource:
16
+
17
+
```yaml
18
+
apiVersion: nais.io/v1alpha1
19
+
kind: Application
20
+
metadata:
21
+
name: my-application
22
+
spec:
23
+
observability:
24
+
logging:
25
+
destinations:
26
+
- loki
27
+
```
28
+
29
+
## Destinations
30
+
31
+
The following log destinations are available in Nais:
[OTLP is the OpenTelemetry Protocol](https://opentelemetry.io/docs/specs/otel/protocol/exporter/), and is the protocol used to send telemetry data to Prometheus, Grafana Tempo, and Grafana Loki.
118
+
119
+
## Destinations
120
+
121
+
If you need to override where telemetry data is stored, you can do so with the following configuration in your `nais.yaml`:
122
+
123
+
```yaml
124
+
spec:
125
+
observability:
126
+
telemetry:
127
+
destinations:
128
+
- grafana-lgtm
129
+
```
130
+
131
+
The following destinations are available:
132
+
133
+
* `grafana-lgtm`
134
+
{% if tenant() == "nav" %}
135
+
* `elastic-apm`
136
+
{% endif %}
137
+
138
+
Default destination for each environment can be found in the [environments overview](../../../workloads/reference/environments.md).
Copy file name to clipboardexpand all lines: docs/workloads/reference/environments.md
+74-4
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,13 @@ See [explanation for exposing application][expose-app] for more information.
34
34
35
35
Kubectl access to the cluster is available through [naisdevice](../../operate/naisdevice/README.md). You can access all namespaces in the cluster, but you can only modify resources in your team's namespace.
36
36
37
+
#### Observability
38
+
39
+
| data | default |
40
+
| :------------------- | :------------- |
41
+
| logs (stdout) |`elastic`|
42
+
| auto-instrumentation |`grafana-lgtm`|
43
+
37
44
### prod-gcp
38
45
39
46
#### Ingress domains
@@ -56,6 +63,13 @@ See [explanation for exposing application][expose-app] for more information.
56
63
57
64
Kubectl access to the cluster is available through [naisdevice](../../operate/naisdevice/README.md). You can only read or modify resources in your team's namespace.
58
65
66
+
#### Observability
67
+
68
+
| data | default |
69
+
| :------------------- | :------------- |
70
+
| logs (stdout) |`elastic`|
71
+
| auto-instrumentation |`grafana-lgtm`|
72
+
59
73
## On-prem
60
74
61
75
!!! warning
@@ -75,6 +89,13 @@ Kubectl access to the cluster is available through [naisdevice](../../operate/na
75
89
76
90
Kubectl access to the cluster is available through [naisdevice](../../operate/naisdevice/README.md). You can access all namespaces in the cluster, but you can only modify resources in your team's namespace.
77
91
92
+
#### Observability
93
+
94
+
| data | default |
95
+
| :------------------- | :------------- |
96
+
| logs (stdout) |`elastic`|
97
+
| auto-instrumentation |`grafana-lgtm`|
98
+
78
99
### prod-fss
79
100
80
101
#### Ingress domains
@@ -90,6 +111,13 @@ Kubectl access to the cluster is available through [naisdevice](../../operate/na
90
111
91
112
Kubectl access to the cluster is available through [naisdevice](../../operate/naisdevice/README.md) with just in time access ([jita](../../operate/naisdevice/explanations/jita.md)). You can only read or modify resources in your team's namespace.
92
113
114
+
#### Observability
115
+
116
+
| data | default |
117
+
| :------------------- | :------------- |
118
+
| logs (stdout) |`elastic`|
119
+
| auto-instrumentation |`grafana-lgtm`|
120
+
93
121
{% endif %}
94
122
{% if tenant() == "ssb" %}
95
123
### test
@@ -107,6 +135,13 @@ Kubectl access to the cluster is available through [naisdevice](../../operate/na
107
135
108
136
- 35.228.178.170
109
137
138
+
#### Observability
139
+
140
+
| data | default |
141
+
| :------------------- | :----------- |
142
+
| logs (stdout) |`cloud-logs`|
143
+
| auto-instrumentation | Not enabled |
144
+
110
145
### prod
111
146
112
147
#### Domains
@@ -121,6 +156,13 @@ Kubectl access to the cluster is available through [naisdevice](../../operate/na
121
156
#### External/outbound IPs
122
157
123
158
- 34.88.222.166
159
+
160
+
#### Observability
161
+
162
+
| data | default |
163
+
| :------------------- | :----------- |
164
+
| logs (stdout) |`cloud-logs`|
165
+
| auto-instrumentation | Not enabled |
124
166
{% endif %}
125
167
{% if tenant() == "atil" %}
126
168
### dev
@@ -136,6 +178,13 @@ Kubectl access to the cluster is available through [naisdevice](../../operate/na
136
178
137
179
- 34.88.9.217
138
180
181
+
#### Observability
182
+
183
+
| data | default |
184
+
| :------------------- | :------------- |
185
+
| logs (stdout) |`loki`|
186
+
| auto-instrumentation |`grafana-lgtm`|
187
+
139
188
{% endif %}
140
189
{% if tenant() == "ldir" %}
141
190
### non-prod
@@ -153,12 +202,19 @@ Kubectl access to the cluster is available through [naisdevice](../../operate/na
| external.prod.ldir.cloud.nais.io | internet | ingress for applications exposed to internet. URLs containing `/metrics`, `/actuator` or `/internal` are blocked. |
163
219
| landbruksdirektoratet.no | internet | ingress for applications exposed to internet. URLs containing `/metrics`, `/actuator` or `/internal` are blocked. |
164
220
| prod.ldir.cloud.nais.io |[naisdevice][naisdevice]| ingress for internal applications |
@@ -168,21 +224,35 @@ Kubectl access to the cluster is available through [naisdevice](../../operate/na
| external.sandbox.test-nais.cloud.nais.io | internet | ingress for applications exposed to internet. URLs containing `/metrics`, `/actuator` or `/internal` are blocked. |
180
243
| sandbox.test-nais.cloud.nais.io |[naisdevice][naisdevice]| ingress for internal applications |
0 commit comments