Skip to content

Commit 2cf11a5

Browse files
committed
wip
1 parent a4d295b commit 2cf11a5

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

blog/2025-06-19/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ services:
44
image: fluent/fluent-bit:latest
55
user: root
66
volumes:
7-
- ./fluentbit/fluent-bit.yaml:/fluent-bit/fluent-bit.yaml
7+
- ./fluent-bit.yaml:/fluent-bit/fluent-bit.yaml
88
develop:
99
watch:
1010
- action: sync+restart
11-
path: ./fluentbit/
11+
path: ./
1212
target: /fluentbit/
1313
command:
1414
- "fluent-bit"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import hashlib
2+
3+
log_line_in_string = "2025-06-19T17:02:35.123456789Z stdout F This is a Foobar application log sample running in kubernetes persisted on /var/log/containers/*.log"
4+
5+
log_line_in_bytes = log_line_in_string.encode("utf-8")
6+
log_line_in_sha256_hexa_decimal = hashlib.sha256(log_line_in_bytes).hexdigest()
7+
8+
print(log_line_in_sha256_hexa_decimal)
9+
# >>> "19a93f55808eb5478c65813c028045f1b354abe12790eb8aee0dd825697aa93e"

0 commit comments

Comments
 (0)