Skip to content

Commit fbf5d1c

Browse files
committed
added img
1 parent 2cff7dc commit fbf5d1c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/en/tutorials/load/automating_json_log_loading_with_vector.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: Automating JSON Log Loading with Vector
44

55
In this tutorial, we'll simulate generating logs locally, collect them using [Vector](https://vector.dev/), store them in S3, and automate their ingestion into Databend Cloud using scheduled tasks.
66

7+
![Automating JSON Log Loading with Vector](@site/static/img/documents/tutorials/vector-tutorial.png)
8+
79
## Before You Start
810

911
Before you start, ensure you have the following prerequisites in place:
@@ -13,7 +15,7 @@ Before you start, ensure you have the following prerequisites in place:
1315
- **AWS CLI**: Ensure that the [AWS CLI](https://aws.amazon.com/cli/) is installed and configured with the necessary permissions to access your S3 bucket.
1416
- **Docker**: Ensure that [Docker](https://www.docker.com/) is installed on your local machine, as it will be used to set up Vector.
1517

16-
## Step 1: Create Target Folder in S3 Bucket
18+
## Step 1: Create a Target Folder in S3 Bucket
1719

1820
To store the logs collected by Vector, create a folder named logs in your S3 bucket. In this tutorial, we use `s3://databend-doc/logs/` as the target location.
1921

@@ -23,7 +25,7 @@ This command creates an empty folder named `logs` in the `databend-doc` bucket:
2325
aws s3api put-object --bucket databend-doc --key logs/
2426
```
2527

26-
## Step 2: Create Local Log File
28+
## Step 2: Create a Local Log File
2729

2830
Simulate log generation by creating a local log file. In this tutorial, we use `/Users/eric/Documents/logs/app.log` as the file path.
2931

@@ -108,7 +110,7 @@ Compared to the original log, the synced log is in NDJSON format, with each reco
108110
{"log":{"event":"purchase","timestamp":"2024-12-08T10:05:00Z","user_id":2}}
109111
```
110112

111-
## Step 4: Create Task in Databend Cloud
113+
## Step 4: Create a Task in Databend Cloud
112114

113115
1. Open a worksheet, and create an external stage that links to the `logs` folder in your bucket:
114116

80.4 KB
Loading

0 commit comments

Comments
 (0)