mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
parent
c48de3345e
commit
d5d2bb61ce
1 changed files with 5 additions and 5 deletions
10
docs/static/logging.asciidoc
vendored
10
docs/static/logging.asciidoc
vendored
|
@ -27,8 +27,8 @@ Slow-log for Logstash adds the ability to log when a specific event takes an abn
|
|||
through the pipeline. Just like the normal application log, you can find slow-logs in your `--path.logs` directory.
|
||||
Slowlog is configured in the `logstash.yml` settings file with the following options:
|
||||
|
||||
------------------------------
|
||||
[source]
|
||||
------------------------------
|
||||
slowlog.threshold.warn (default: -1)
|
||||
slowlog.threshold.info (default: -1)
|
||||
slowlog.threshold.debug (default: -1)
|
||||
|
@ -42,12 +42,12 @@ can be specified using the following time units: `nanos` (nanoseconds), `micros`
|
|||
|
||||
Here is an example:
|
||||
|
||||
[source,yaml]
|
||||
------------------------------
|
||||
[source]
|
||||
slowlog.threshold.warn: 2s
|
||||
slowlog.threshold.info 1s
|
||||
slowlog.threshold.debug 500ms
|
||||
slowlog.threshold.trace 100ms
|
||||
slowlog.threshold.info: 1s
|
||||
slowlog.threshold.debug: 500ms
|
||||
slowlog.threshold.trace: 100ms
|
||||
------------------------------
|
||||
|
||||
In the above configuration, events that take longer than two seconds to be processed within a filter will be logged.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue