-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #5. logging role splitted into two: logging/k3s for deploying efk…
… in k3s cluster and logging/external_nodes for deploying fluentbit in control nodes
- Loading branch information
Showing
13 changed files
with
33 additions
and
6 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
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,10 @@ | ||
--- | ||
# Deploy fluentbit | ||
- name: Deploy fluentbit. | ||
include_role: | ||
name: ricsanfre.fluentbit | ||
vars: | ||
# lua scripts | ||
fluentbit_lua_scripts: | ||
- name: adjust_ts.lua | ||
content: "{{ lookup('template','templates/adjust_ts.lua') }}" |
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,7 @@ | ||
function local_timestamp_to_UTC(tag, timestamp, record) | ||
local utcdate = os.date("!*t", ts) | ||
local localdate = os.date("*t", ts) | ||
localdate.isdst = false -- this is the trick | ||
utc_time_diff = os.difftime(os.time(localdate), os.time(utcdate)) | ||
return 1, timestamp - utc_time_diff, record | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.