diff --git a/deployment/logging.md b/deployment/logging.md index 3e400073..617f54c8 100644 --- a/deployment/logging.md +++ b/deployment/logging.md @@ -148,12 +148,28 @@ end ## Output to Log File +### By Command Line Option + By default, Fluentd outputs to the standard output. Use `-o` command line option to specify the file instead: ```text $ fluentd -o /path/to/log_file ``` +### By Config File + +You can also configure the log file path using the `` directive under ``: + +```text + + + path /path/to/log_file + + + +$ fluentd -o /path/to/log_file +``` + ### Log Rotation Setting By default, Fluentd does not rotate log files. You can configure this behavior via system-config after v1.13.0.