mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
docs/VictoriaLogs/LogsQL.md: remove redundant replace
word in examples for conditional replace
Thanks to @p5i for the bugreport at https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7168
This commit is contained in:
parent
155089afbf
commit
66645c3dff
1 changed files with 2 additions and 2 deletions
|
@ -2041,7 +2041,7 @@ The `<filters>` can contain arbitrary [filters](#filters). For example, the foll
|
|||
only if `user_type` field equals to `admin`:
|
||||
|
||||
```logsql
|
||||
_time:5m | replace if (user_type:=admin) replace ("secret", "***") at password
|
||||
_time:5m | replace if (user_type:=admin) ("secret", "***") at password
|
||||
```
|
||||
|
||||
### replace_regexp pipe
|
||||
|
@ -2093,7 +2093,7 @@ The `<filters>` can contain arbitrary [filters](#filters). For example, the foll
|
|||
with `***` in the `foo` field only if `user_type` field equals to `admin`:
|
||||
|
||||
```logsql
|
||||
_time:5m | replace_regexp if (user_type:=admin) replace ("password: [^ ]+", "") at foo
|
||||
_time:5m | replace_regexp if (user_type:=admin) ("password: [^ ]+", "") at foo
|
||||
```
|
||||
|
||||
### sort pipe
|
||||
|
|
Loading…
Reference in a new issue