Skip to content

Commit fb9e19a

Browse files
committed
tmux -> fluentd -> logstash
1 parent 5596804 commit fb9e19a

File tree

4 files changed

+39
-1
lines changed

4 files changed

+39
-1
lines changed

files/fluentd/shell.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<source>
2+
@type named_pipe
3+
path /tmp/tmux_fluentbit.fifo
4+
tag tmux
5+
format none
6+
</source>
7+
8+
<match **>
9+
@type rawtcp
10+
#buffer_type file
11+
#buffer_path /var/log/fluent/logcentral
12+
<buffer>
13+
flush_mode interval
14+
#flush_mode immediate
15+
flush_interval 0.1
16+
</buffer>
17+
<server>
18+
name log1
19+
host 127.0.0.1
20+
port 12345
21+
</server>
22+
</match>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
- pipeline.id: pipeline
1+
- pipeline.id: kubernetes
22
path.config: "/bitnami/logstash/pipeline/kubernetes.conf"
33
#path.config: "/home/bebebeko/mindwm/files/logstash/pipeline/kubernetes.conf"
44
pipeline.ecs_compatibility: disabled
5+
6+
- pipeline.id: shell
7+
path.config: "/bitnami/logstash/pipeline/shell.conf"

files/logstash/pipeline/kubernetes.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ input {
55
codec => json
66
}
77
}
8+
9+
10+
811
filter {
912
if ! [kubernetes][namespace_name] { drop {} }
1013

files/logstash/pipeline/shell.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
input {
2+
tcp {
3+
port => 12345
4+
codec => json
5+
}
6+
}
7+
output {
8+
stdout {
9+
}
10+
}

0 commit comments

Comments
 (0)