You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Mainly intended to be used by command option `--with-source-only`
* We can use system-config option `with_source_only` as well
* Not supported on Windows
It launches Fluentd with Input plugins only.
Here is the specification.
* Those Input plugins emits the events to SourceOnlyBufferAgent.
* The events is kept in the buf_file during the source-only-mode.
* Send SIGWINCH to the supervisor to cancels the mode.
* After canceled, the new agent starts to load the buffer.
Co-authored-by: Shizuo Fujita <fujita@clear-code.com>
Co-authored-by: Kentaro Hayashi <hayashi@clear-code.com>
Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
Copy file name to clipboardExpand all lines: lib/fluent/command/fluentd.rb
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,12 @@
127
127
cmd_opts[:without_source]=b
128
128
}
129
129
130
+
unlessFluent.windows?
131
+
op.on('--with-source-only',"Invoke a fluentd only with input plugins. The data is stored in a temporary buffer. Send SIGWINCH to cancel this mode and process the data (Not supported on Windows).",TrueClass){|b|
132
+
cmd_opts[:with_source_only]=b
133
+
}
134
+
end
135
+
130
136
op.on('--config-file-type VALU','guessing file type of fluentd configuration. yaml/yml or guess'){ |s|
0 commit comments