-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved logging Added docker compose for local logs
- Loading branch information
Showing
13 changed files
with
140 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,7 @@ | |
|
||
# Go workspace file | ||
go.work | ||
|
||
#local elastic | ||
assets/elastic/data/* | ||
!assets/elastic/data/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[SERVICE] | ||
log_level debug | ||
Parsers_File parsers.conf | ||
|
||
[INPUT] | ||
Name forward | ||
Listen 0.0.0.0 | ||
port 24224 | ||
|
||
[FILTER] | ||
Name parser | ||
Match * | ||
Key_Name log | ||
Preserve_Key False | ||
Reserve_Data On | ||
Parser cri-json | ||
|
||
[OUTPUT] | ||
Name es | ||
Match * | ||
Host elasticsearch | ||
Port 9200 | ||
Suppress_Type_Name On |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[PARSER] | ||
Name cri-json | ||
Format json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
services: | ||
elasticsearch: | ||
image: elasticsearch:8.13.0 | ||
environment: | ||
- discovery.type=single-node | ||
- xpack.security.enabled=false | ||
ports: | ||
- 9200:9200 | ||
volumes: | ||
- ./assets/elastic/data/:/usr/share/elasticsearch/data | ||
mem_limit: "1g" | ||
|
||
fluentd: | ||
image: fluent/fluent-bit | ||
volumes: | ||
- ./assets/fluent:/fluent-bit/etc/ | ||
ports: | ||
- 24224:24224 | ||
- 24224:24224/udp | ||
depends_on: | ||
- elasticsearch | ||
|
||
kibana: | ||
image: kibana:8.13.0 | ||
ports: | ||
- 5601:5601 | ||
environment: | ||
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200 | ||
depends_on: | ||
- elasticsearch | ||
|
||
jarl: | ||
container_name: jarl | ||
build: . | ||
ports: | ||
- 8000:8000 | ||
- 9000:9000 | ||
environment: | ||
- AUTHZ_HEADER=x-forwarded-sub | ||
logging: | ||
driver: fluentd | ||
options: | ||
tag: jarl | ||
fluentd-async: 'true' | ||
restart: always | ||
depends_on: | ||
- fluentd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters