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
Copy file name to clipboardExpand all lines: docs/log-management/send-logs/using-vector.md
+91-77Lines changed: 91 additions & 77 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,88 +34,96 @@ mkdir qwdata
34
34
```bash
35
35
# Create Quickwit data dir.
36
36
mkdir qwdata
37
-
docker run --rm -v $(pwd)/qwdata:/quickwit/qwdata -p 127.0.0.1:7280:7280 quickwit/quickwit run
37
+
docker run --rm -v $(pwd)/qwdata:/quickwit/qwdata -p 7280:7280 quickwit/quickwit run
38
38
```
39
39
40
40
</TabItem>
41
41
42
42
</Tabs>
43
43
44
-
## Create an index for logs
44
+
## Taking advantage of Quickwit's native support for logs
45
45
46
-
Let's embrace the OpenTelemetry standard and create an index compatible with its [logs data model](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md).
46
+
Let's embrace the OpenTelemetry standard and take advantage of Quickwit features. With the native support for OpenTelemetry standards, Quickwit already comes with an index called `otel-logs_v0_6` that is compatible with the OpenTelemetry [logs data model](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md). This means we can start pushing log data without any prior usual index setup.
47
47
48
-
```yaml title="index-config.yaml"
49
-
#
50
-
# Index config file for receiving logs in OpenTelemetry format.
./quickwit index create --index-config vector-otel-logs.yaml
120
+
search_settings:
121
+
default_search_fields: [body.message]
109
122
```
110
123
111
-
</TabItem>
112
-
113
-
</Tabs>
114
-
115
-
116
124
## Setup Vector
117
125
118
-
Our sink here will be Quickwit ingest API `http://127.0.0.1:7280/api/v1/otel-logs/ingest`.
126
+
Our sink here will be Quickwit ingest API `http://127.0.0.1:7280/api/v1/otel-logs-v0_6/ingest`.
119
127
To keep it simple in this tutorial, we will use a log source called `demo_logs` that generates logs in a given format. Let's choose the common `syslog` format
120
128
(Vector does not generate logs in the OpenTelemetry format directly!) and use the transform feature to map the `syslog` format into the OpenTelemetry format.
0 commit comments