-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/notify 12 log dating #57
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
image: | ||
repository: ghcr.io/bcgov/des-notify-bc | ||
pullPolicy: Always | ||
# Overrides the image tag whose default is the chart appVersion. | ||
tag: 'latest' | ||
fluentbit: | ||
persistence: | ||
# Overrides netapp-file-backup which is only valid in OpenShift. | ||
storageClassName: hostpath | ||
cronJob: | ||
# Overrides netapp-file-backup which is only valid in OpenShift. | ||
storageClassName: hostpath |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -202,14 +202,25 @@ fluentbit: | |
service: "" | ||
inputs: | | ||
[INPUT] | ||
Name tail | ||
Path /tmp/logs/*.log | ||
Tag app.access.log | ||
Mem_Buf_Limit 5MB | ||
Name tail | ||
Path /tmp/logs/*.log | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why all the whitespace changes? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought it would be easier to read if the values were aligned with each other. |
||
Tag app.access.log | ||
Mem_Buf_Limit 5MB | ||
Skip_Long_Lines Off | ||
filters: "" | ||
filters: | | ||
[FILTER] | ||
Name Lua | ||
Match * | ||
call append_tag | ||
code function append_tag(tag, timestamp, record) new_record = record new_record["datestamp"] = os.date("%Y%m%d", timestamp) return 1, timestamp, new_record end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool - Lua code! seems to be appending a tag to each record containing a datestamp. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's right. It's pretty hacky but I'm just wanting to finish this thing up even if it isn't done in the best way. |
||
|
||
[FILTER] | ||
Name rewrite_tag | ||
Match app.access.log | ||
Rule $datestamp ^(.*)$ $datestamp.app.access.log false | ||
Emitter_Name re_emitted | ||
outputs: | | ||
[OUTPUT] | ||
Name file | ||
Name file | ||
Match * | ||
Path /tmp/pvc/ | ||
Path /tmp/pvc/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems easy to follow. I like numbered lists with actual commands in them