Skip to content

Commit

Permalink
Add missing Fluentbit index config for tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed Jan 10, 2024
1 parent 374337d commit 59c8c90
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 17 additions & 0 deletions config/tutorials/fluentbit-logs/index-config.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions docs/log-management/send-logs/using-fluentbit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`.

Expand Down

0 comments on commit 59c8c90

Please sign in to comment.