Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Craig Norris <[email protected]>
Signed-off-by: esmerel <[email protected]>
  • Loading branch information
esmerel and cnorris-cs authored Sep 20, 2024
1 parent dac8832 commit 6410511
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pipeline/parsers/regular-expression.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Regular Expression

The **Regex** parser lets you to define a custom Ruby regular expression that uses
The **Regex** parser lets you define a custom Ruby regular expression that uses
a named capture feature to define which content belongs to which key name.

Use [Tail Multiline](../inputs/tail.md#multiline) when you need to support regexes
Expand All @@ -18,7 +18,7 @@ Setting the format to **regex** requires a `regex` configuration key.

## Configuration Parameters

The regex parser supports the following configuration parameters.
The regex parser supports the following configuration parameters:

| Key | Description | Default Value |
| --- | ----------- | ------------- |
Expand All @@ -27,10 +27,9 @@ The regex parser supports the following configuration parameters.
Fluent Bit uses the [Onigmo](https://github.com/k-takata/Onigmo) regular expression
library on Ruby mode.

You can only use alphanumeric characters and underscore in group names. For example,
You can use only alphanumeric characters and underscore in group names. For example,
a group name like `(?<user-name>.*)` causes an error due to the invalid dash (`-`)
character. Use the [http://rubular.com/](http://rubular.com/) web editor to test your
expressions
character. Use the [Rubular](http://rubular.com/) web editor to test your expressions.

The following parser configuration example provides rules that can be applied to an
Apache HTTP Server log entry:
Expand Down

0 comments on commit 6410511

Please sign in to comment.