Skip to content

Commit a4d295b

Browse files
committed
wip
1 parent 0f61742 commit a4d295b

File tree

3 files changed

+39
-22
lines changed

3 files changed

+39
-22
lines changed

blog/2025-06-18/fluentbit/fluent-bit.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
service:
2+
flush: 1 # Flush records every second. Controls how often data is pushed to outputs.
3+
log_level: error # Only log errors. Reduces log verbosity for Fluent Bit itself.
4+
5+
pipeline:
6+
inputs:
7+
- name: dummy
8+
dummy: '{"message": "2025-06-19T17:02:35.123456789Z stdout F This is a Foobar application log sample running in kubernetes persisted on /var/log/containers/*.log"}'
9+
tag: dummy.foobar
10+
processors:
11+
logs:
12+
# Copy the 'message' field to a new field called '_id'.
13+
- name: modify
14+
copy: message _id
15+
16+
# Hash the '_id' field to anonymize or deduplicate.
17+
- name: content_modifier
18+
action: hash
19+
key: _id
20+
21+
- name: dummy
22+
dummy: '{"message": "2025-06-19T17:02:35.123456789Z stdout F This is a Greeting application log sample running in kubernetes persisted on /var/log/containers/*.log"}'
23+
tag: dummy.greeting
24+
processors:
25+
logs:
26+
# Copy the 'message' field to a new field called '_id'.
27+
- name: modify
28+
copy: message _id
29+
30+
# Hash the '_id' field to anonymize or deduplicate.
31+
- name: content_modifier
32+
action: hash
33+
key: _id
34+
35+
outputs:
36+
- name: stdout
37+
format: json_lines
38+
match: "dummy.*"
39+

0 commit comments

Comments
 (0)