We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0eb09a commit f04e81cCopy full SHA for f04e81c
deployment/logging.md
@@ -148,12 +148,28 @@ end
148
149
## Output to Log File
150
151
+### By Command Line Option
152
+
153
By default, Fluentd outputs to the standard output. Use `-o` command line option to specify the file instead:
154
155
```text
156
$ fluentd -o /path/to/log_file
157
```
158
159
+### By Config File
160
161
+You can also configure the log file path using the `<log>` directive under `<system>`:
162
163
+```text
164
+<system>
165
+ <log>
166
+ path /path/to/log_file
167
+ </log>
168
+</system>
169
170
+$ fluentd -o /path/to/log_file
171
+```
172
173
### Log Rotation Setting
174
175
By default, Fluentd does not rotate log files. You can configure this behavior via system-config after v1.13.0.
0 commit comments