Skip to content

Commit

Permalink
logging: add 'By Config File' section for log path configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 committed Sep 26, 2024
1 parent f0eb09a commit f04e81c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deployment/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<log>` directive under `<system>`:

```text
<system>
<log>
path /path/to/log_file
</log>
</system>
$ 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.
Expand Down

0 comments on commit f04e81c

Please sign in to comment.