From 59c8c908841bdd838b1ac603d092cdfce397fe0f Mon Sep 17 00:00:00 2001 From: Adrien Guillo Date: Thu, 4 Jan 2024 19:56:29 +0100 Subject: [PATCH] Add missing Fluentbit index config for tutorial --- .../tutorials/fluentbit-logs/index-config.yaml | 17 +++++++++++++++++ .../log-management/send-logs/using-fluentbit.md | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 config/tutorials/fluentbit-logs/index-config.yaml diff --git a/config/tutorials/fluentbit-logs/index-config.yaml b/config/tutorials/fluentbit-logs/index-config.yaml new file mode 100644 index 00000000000..f83206a50be --- /dev/null +++ b/config/tutorials/fluentbit-logs/index-config.yaml @@ -0,0 +1,17 @@ +version: 0.7 + +index_id: fluentbit-logs + +doc_mapping: + mode: dynamic + field_mappings: + - name: timestamp + type: datetime + input_formats: + - unix_timestamp + output_format: unix_timestamp_secs + fast: true + timestamp_field: timestamp + +indexing_settings: + commit_timeout_secs: 10 diff --git a/docs/log-management/send-logs/using-fluentbit.md b/docs/log-management/send-logs/using-fluentbit.md index 65b338ac6a1..383c05974a3 100644 --- a/docs/log-management/send-logs/using-fluentbit.md +++ b/docs/log-management/send-logs/using-fluentbit.md @@ -26,7 +26,6 @@ In this guide, we will show you how to connect it to Quickwit. Let's create a schemaless index with only one field `timestamp`. The mode `dynamic` indicates that Quickwit will index all fields even if they are not defined in the doc mapping. ```yaml title="index-config.yaml" - version: 0.7 index_id: fluentbit-logs @@ -104,7 +103,7 @@ fluent-bit -c fluent-bit.conf ## Search logs -Quickwit is now ingesting logs coming from Fluentbit and you can search them either with `curl` or by using the UI: +Quickwit is now ingesting logs coming from Fluentbit and you can search them either with `cURL` or by using the UI: - `curl "http://127.0.0.1:7280/api/v1/fluentbit-logs/search?query=severity:DEBUG"` - Open your browser at `http://127.0.0.1:7280/ui/search?query=severity:DEBUG&index_id=fluentbit-logs&max_hits=10`.