File tree Expand file tree Collapse file tree 5 files changed +101
-0
lines changed
fluentbit/duplicated-logs Expand file tree Collapse file tree 5 files changed +101
-0
lines changed Original file line number Diff line number Diff line change
1
+ GET dummy / _search
2
+
3
+ DELETE dummy
4
+
5
+
Original file line number Diff line number Diff line change
1
+ services :
2
+ fluentbit :
3
+ container_name : fluentbit
4
+ image : fluent/fluent-bit:latest
5
+ user : root
6
+ volumes :
7
+ - ./fluent-bit.yaml:/fluent-bit/fluent-bit.yaml
8
+ develop :
9
+ watch :
10
+ - action : sync+restart
11
+ path : ./
12
+ target : /fluentbit/
13
+ command :
14
+ - " fluent-bit"
15
+ - " -c"
16
+ - " /fluent-bit/fluent-bit.yaml"
17
+
18
+ opensearch :
19
+ container_name : opensearch
20
+ image : opensearchproject/opensearch:2.10.0
21
+ volumes :
22
+ - ./opensearch.yml:/usr/share/opensearch/config/opensearch.yml
23
+ ports :
24
+ - 9200:9200
25
+ environment :
26
+ OPENSEARCH_JAVA_OPTS : -Xms512m -Xmx512m
27
+
28
+ opensearch-dashboards :
29
+ container_name : opensearch-dashboards
30
+ image : opensearchproject/opensearch-dashboards:2.10.0
31
+ volumes :
32
+ - ./opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
33
+ ports :
34
+ - 5601:5601
35
+ depends_on :
36
+ - opensearch
Original file line number Diff line number Diff line change
1
+ service :
2
+ flush : 1
3
+ log_level : error
4
+
5
+ pipeline :
6
+ inputs :
7
+ - name : dummy
8
+ tag : dummy
9
+ samples : 3
10
+ dummy : |
11
+ {
12
+ "date": 1750716865.516016,
13
+ "message": "foobar"
14
+ }
15
+
16
+
17
+ outputs :
18
+ - name : stdout
19
+ format : json_lines
20
+ match : dummy
21
+
22
+ # # logs will be duplicated
23
+ # - name: opensearch
24
+ # match: dummy
25
+ # host: opensearch
26
+ # port: 9200
27
+ # index: dummy
28
+ # write_operation: index
29
+ # suppress_type_name: true
30
+ # time_key: date
31
+ # trace_output: true
32
+ # trace_error: true
33
+ # id_key: log_hash
34
+
35
+ # logs doesnt not will be duplicated
36
+ - name : opensearch
37
+ match : dummy
38
+ host : opensearch
39
+ port : 9200
40
+ index : dummy
41
+ write_operation : index
42
+ suppress_type_name : true
43
+ time_key : date
44
+ trace_output : true
45
+ trace_error : true
46
+ generate_id : true
47
+
Original file line number Diff line number Diff line change
1
+ cluster.name : docker-cluster
2
+ discovery.type : single-node
3
+ network.host : 0.0.0.0
4
+
5
+ plugins.security.disabled : true
Original file line number Diff line number Diff line change
1
+ # https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/config/opensearch_dashboards.yml
2
+
3
+ server.port : 5601
4
+ server.host : " 0.0.0.0"
5
+ server.ssl.enabled : false
6
+
7
+ opensearch.hosts :
8
+ - " http://opensearch:9200"
You can’t perform that action at this time.
0 commit comments