-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add <worker n> section to set a configuration for a specific worker
- Loading branch information
Yuki Ito
committed
Mar 23, 2017
1 parent
881d481
commit a23d1ea
Showing
10 changed files
with
546 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<system> | ||
workers 8 | ||
root_dir /path/fluentd/root | ||
</system> | ||
|
||
<source> # top-level sections works on all workers in parallel | ||
@id edge_input | ||
@type forward | ||
@label @traffic | ||
port 24224 | ||
</source> | ||
|
||
<label @traffic> # this section works on all workers too | ||
<match **> | ||
@id backend_output | ||
@type forward | ||
</match> | ||
</label> | ||
|
||
<worker 0> # this section works only on first worker process | ||
<source> | ||
@id system_log_reader | ||
@type tail | ||
tag monitoring | ||
path /path/now/watching/... | ||
</source> | ||
<match monitoring> | ||
@id output_for_monitoring | ||
@type elasticsearch | ||
# ... | ||
</match> | ||
</worker> |
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
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.