-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ :feat: Replace tofhir-log-server with Fluentd, Elasticsearch and Ki…
…bana stack
- Loading branch information
Showing
50 changed files
with
416 additions
and
1,564 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
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,15 @@ | ||
#Specifies the base image for building the Fluentd Docker image | ||
FROM fluent/fluentd:v1.11-1 | ||
#Switches to the root user account to perform package installations and configurations. | ||
USER root | ||
#Installs necessary packages and dependencies using the Alpine package manager (apk). | ||
RUN apk add --no-cache --update --virtual .build-deps \ | ||
sudo build-base ruby-dev \ | ||
&& sudo gem install faraday -v 2.8.1 \ | ||
&& sudo gem install faraday-net_http -v 3.0.2 \ | ||
&& sudo gem install fluent-plugin-elasticsearch \ | ||
&& sudo gem sources --clear-all \ | ||
&& apk del .build-deps \ | ||
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem | ||
# Switches back to the fluent user account to run Fluentd. | ||
USER fluent |
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 @@ | ||
// Defines a Fluentd configuration for forwarding logs to Elasticsearch. | ||
|
||
<source> | ||
// Specifies the input plugin type as 'forward', which receives log entries forwarded by Fluentd clients. | ||
@type forward | ||
// Specifies the port on which the forward input plugin listens for incoming log entries. | ||
port 24224 | ||
</source> | ||
|
||
<match **> | ||
// Specifies the output plugin type as 'elasticsearch', which sends log entries to an Elasticsearch cluster. | ||
@type elasticsearch | ||
// Specifies the host address of the Elasticsearch cluster. | ||
host elasticsearch | ||
// Specifies the port number of the Elasticsearch cluster. | ||
port 9200 | ||
// Configures the output format to be compatible with Logstash. | ||
logstash_format true | ||
// Specifies the prefix to be added to the index name in Elasticsearch. | ||
logstash_prefix fluentd | ||
// Specifies the interval at which buffered log entries are flushed to Elasticsearch. | ||
flush_interval 5s | ||
</match> |
Large diffs are not rendered by default.
Oops, something went wrong.
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,24 @@ | ||
PUT _template/ignore_above | ||
{ | ||
"index_patterns": [ | ||
"fluentd*" | ||
], | ||
"mappings": { | ||
"dynamic_templates": [ | ||
{ | ||
"strings_as_keyword": { | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "text", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 10000, | ||
"type": "keyword" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.