Skip to content
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

Refactoring td agent buffer #172

Merged
merged 2 commits into from
Jul 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<filter **>
@type record_transformer
<record>
hostname ${hostname}
hostname "#{Socket.gethostname}"
</record>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<filter **>
@type record_transformer
<record>
hostname ${hostname}
hostname "#{Socket.gethostname}"
</record>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<filter **>
@type record_transformer
<record>
hostname ${hostname}
hostname "#{Socket.gethostname}"
</record>
</filter>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@
</source>

# Capture fluentd's own logs
<match fluent.**>
@type relabel
@label @local
</match>
<label @FLUENT_LOG>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it related to the buffer thing ? or it is just nice to add thing ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to do with the buffer thing. I just corrected the writing of the deprecation. 🙈

<match fluent.**>
@type relabel
@label @local
</match>
</label>

# Add hostname field to local log records
<label @local>
<filter **>
@type record_transformer
<record>
hostname ${hostname}
hostname "#{Socket.gethostname}"
</record>
</filter>
<match **>
Expand All @@ -46,6 +48,8 @@
path /log/${hostname}/%Y/%m-%d/${tag[0]}
append true
<buffer time,tag,hostname>
@type file
path /log/buffer
timekey 1d
timekey_wait 5m
timekey_use_utc true
Expand Down