Skip to content

Commit cb13890

Browse files
committed
DOCS-3366: Deduplicate noisy logs
1 parent 2c7e413 commit cb13890

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/manage/troubleshoot/troubleshoot.md

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ For example:
6262

6363
For more information on setting log levels see, [Logging](/manage/troubleshoot/troubleshoot/#check-logs).
6464

65+
You may also find that not all logs you are expecting are displayed.
66+
By default, `viam-server` deduplicates log messages that are deemed noisy.
67+
To disable this behavior, see [Disable log deduplication](/operate/reference/viam-server/).
68+
6569
To access logs from the commandline, use [`viam machines logs`](/dev/tools/cli/#machines-alias-robots) on the command line or the [Machines API](/dev/reference/apis/robot/).
6670

6771
## Remote shell on the machine

docs/operate/reference/viam-server/_index.md

+11
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ Patterns are processed from top to bottom.
144144
If multiple patterns apply, the last pattern to be processed will apply.
145145
If log configurations are applied at a resource level using the `log_configuration` field, these take precedence over log levels applied in the `log` field of the machine configuration.
146146

147+
#### Disable log deduplication
148+
149+
By default, `viam-server` deduplicates log messages that are deemed noisy.
150+
A log is deemed noisy if it has been output 3 times in the past 10 seconds.
151+
152+
To disable log deduplication, set `disable_log_deduplication` in your machine's configuration:
153+
154+
```json
155+
"disable_log_deduplication": true
156+
```
157+
147158
#### Debugging
148159

149160
You can enable debug level logs in two ways:

0 commit comments

Comments
 (0)