Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/manage/logpath.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can define a logging configuration when you start a `pbm-agent` as follows:

* using the command line flags. This setting has the highest priority and overrides other setup options.
* using environment variables
* via the configuration file. This setting is available starting with version 2.9.0.
* [via the configuration file](start-agent-with-config.md). This setting is available starting with version 2.9.0.

## Logging configuration options

Expand Down
2 changes: 2 additions & 0 deletions docs/manage/start-agent-with-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ For the initial `pbm-agent` start, you require the credentials of a `pbm` user.
```bash
pbm-agent -f /etc/pbm-agent.yaml
```

See all available configuration options in the [pbm-agent configuration file options](../reference/pbm-agent-config-options.md) reference.
55 changes: 55 additions & 0 deletions docs/reference/pbm-agent-config-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# pbm-agent configuration file options

Check warning on line 1 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L1

[Google.Headings] 'pbm-agent configuration file options' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'pbm-agent configuration file options' should use sentence-style capitalization.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 1, "column": 3}}}, "severity": "WARNING"}

The following options are available for the `pbm-agent` configuration file. Read more about how to use the configuration file in the [Start pbm-agent using the configuration file](../manage/start-agent-with-config.md) chapter.

Check warning on line 3 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L3

[Google.WordList] Use 'documents', 'pages', or 'sections' instead of 'chapter'.
Raw output
{"message": "[Google.WordList] Use 'documents', 'pages', or 'sections' instead of 'chapter'.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 3, "column": 219}}}, "severity": "WARNING"}

```yaml
mongodb-uri: mongodb://pbm:mysecret@localhost:27017/
backup:
dump-parallel-collections: 10
log:
path: "/var/log/pbm.json"
level: "I"
json: true
```

## mongodb-uri

Check warning on line 15 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L15

[Google.Headings] 'mongodb-uri' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'mongodb-uri' should use sentence-style capitalization.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 15, "column": 4}}}, "severity": "WARNING"}

*Type*: string <br>
*Required*: YES

Check warning on line 18 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L18

[Google.Colons] ': Y' should be in lowercase.
Raw output
{"message": "[Google.Colons] ': Y' should be in lowercase.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 18, "column": 11}}}, "severity": "WARNING"}

The MongoDB connection string URI that the `pbm-agent` uses to connect to the local `mongod` node. This option is mandatory to start the `pbm-agent`.

## backup.dump-parallel-collections

Check warning on line 22 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L22

[Google.Headings] 'backup.dump-parallel-collections' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'backup.dump-parallel-collections' should use sentence-style capitalization.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 22, "column": 4}}}, "severity": "WARNING"}

*Type*: int <br>
*Required*: NO <br>

Check warning on line 25 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L25

[Google.Colons] ': N' should be in lowercase.
Raw output
{"message": "[Google.Colons] ': N' should be in lowercase.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 25, "column": 11}}}, "severity": "WARNING"}
*Default*: number of CPU cores / 2 (minimum 1)

The number of collections to dump in parallel during a logical backup. By default, the number of parallel collections is half of the number of CPU cores, with a minimum value of 1.

## log.path

Check warning on line 30 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L30

[Google.Headings] 'log.path' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'log.path' should use sentence-style capitalization.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 30, "column": 4}}}, "severity": "WARNING"}

*Type*: string <br>
*Required*: NO <br>

Check warning on line 33 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L33

[Google.Colons] ': N' should be in lowercase.
Raw output
{"message": "[Google.Colons] ': N' should be in lowercase.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 33, "column": 11}}}, "severity": "WARNING"}
*Default*: `/dev/stderr`

The path to the log file where a `pbm-agent` writes its logs. The file is created if it doesn't exist. The default value is `/dev/stderr`, which means that logs are written to the standard error output. If PBM cannot write logs to the specified path due to an error, it falls back to the default path.

## log.level

Check warning on line 38 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L38

[Google.Headings] 'log.level' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'log.level' should use sentence-style capitalization.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 38, "column": 4}}}, "severity": "WARNING"}

*Type*: string <br>
*Required*: NO <br>

Check warning on line 41 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L41

[Google.Colons] ': N' should be in lowercase.
Raw output
{"message": "[Google.Colons] ': N' should be in lowercase.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 41, "column": 11}}}, "severity": "WARNING"}
*Default*: `D`

The log severity level. Supported levels are (from low to high): `D` - Debug (default), `I` - Info, `W` - Warning, `E` - Error, `F` - Fatal.

The output includes both the specified severity level and all higher ones. For example, if you set the level to `I` (Info), the output will include Info, Warning, Error, and Fatal messages.

Check warning on line 46 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L46

[Google.Will] Avoid using 'will'.
Raw output
{"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 46, "column": 136}}}, "severity": "WARNING"}

## log.json

Check warning on line 48 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L48

[Google.Headings] 'log.json' should use sentence-style capitalization.
Raw output
{"message": "[Google.Headings] 'log.json' should use sentence-style capitalization.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 48, "column": 4}}}, "severity": "WARNING"}

*Type*: boolean <br>

Check warning on line 50 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L50

[Vale.Spelling] Did you really mean 'boolean'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'boolean'?", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 50, "column": 9}}}, "severity": "WARNING"}
*Required*: NO <br>

Check warning on line 51 in docs/reference/pbm-agent-config-options.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/reference/pbm-agent-config-options.md#L51

[Google.Colons] ': N' should be in lowercase.
Raw output
{"message": "[Google.Colons] ': N' should be in lowercase.", "location": {"path": "docs/reference/pbm-agent-config-options.md", "range": {"start": {"line": 51, "column": 11}}}, "severity": "WARNING"}
*Default*: `false`

Output log messages in JSON format. If set to `false` or undefined, logs are written in the default text format.

1 change: 1 addition & 0 deletions mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ nav:
- reference/backup-options.md
- reference/restore-options.md
- reference/logging-options.md
- reference/pbm-agent-config-options.md
- Administer PBM:
- manage/overview.md
- 'PBM configuration via pipelines': 'manage/configure-remotely.md'
Expand Down