-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit for redundant information and sections across Data Prepper #7127
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
16b2387
Edit for redundant information and sections across Data Prepper
vagimeli 584e08d
Edit for redundant information and sections across Data Prepper
vagimeli 458079e
Rewrite expression syntax and reorganize doc structure for readability
vagimeli 92cd1b8
Rewrite expression syntax and reorganize doc structure for readability
vagimeli 7228bb2
Rewrite expression syntax and reorganize doc structure for readability
vagimeli c2d751f
Rewrite expression syntax and reorganize doc structure for readability
vagimeli 82373d7
Rewrite expression syntax and reorganize doc structure for readability
vagimeli 26c2013
Merge branch 'main' into update-index
vagimeli 050292a
Update _data-prepper/index.md
vagimeli 01b54ac
Update configuring-data-prepper.md
vagimeli fe74f47
Update _data-prepper/pipelines/expression-syntax.md
vagimeli eb38891
Update _data-prepper/pipelines/expression-syntax.md
vagimeli 1cb7fb6
Merge branch 'main' into update-index
vagimeli 50b5161
Update _data-prepper/pipelines/pipelines.md
vagimeli 940bdf3
Update expression-syntax.md
vagimeli 1ba7767
Create Functions subpages
vagimeli 1e0b30a
Create functions subpages
vagimeli a5ae73e
Copy edit
vagimeli 6c37337
Merge branch 'main' into update-index
vagimeli e279143
Merge branch 'main' into update-index
vagimeli 79d8a34
add remaining subpages
vagimeli b47b8b4
Update _data-prepper/index.md
hdhalter c647da6
Apply suggestions from code review
hdhalter 365fa7d
Apply suggestions from code review
hdhalter 1d735a6
Apply suggestions from code review
dlvenable e0f7743
removed-line
hdhalter 1b1f1f1
Merge branch 'main' into update-index
hdhalter 36bf8b8
Merge branch 'main' into update-index
hdhalter be987b5
Fixed broken link to pipelines
hdhalter 83b4136
Fixed broken links on Update add-entries.md
hdhalter 6bd246f
Fixed broken link in Update dynamo-db.md
hdhalter 475e202
Fixed link syntax in Update index.md
hdhalter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
layout: default | ||
title: cidrContains() | ||
parent: Functions | ||
grand_parent: Pipelines | ||
nav_order: 5 | ||
--- | ||
|
||
# cidrContains() | ||
Check failure on line 9 in _data-prepper/pipelines/cidrcontains.md GitHub Actions / vale[vale] _data-prepper/pipelines/cidrcontains.md#L9
Raw output
|
||
|
||
The `cidrContains()` function is used to check if an IP address is contained within a specified Classless Inter-Domain Routing (CIDR) block or range of CIDR blocks. It accepts two or more arguments: | ||
|
||
- The first argument is a JSON pointer, which represents the key or path to the field containing the IP address to be checked. It supports both IPv4 and IPv6 address formats. | ||
|
||
- The subsequent arguments are strings representing one or more CIDR blocks or IP address ranges. The function checks if the IP address specified in the first argument matches or is contained within any of these CIDR blocks. | ||
|
||
For example, if your data contains an IP address field named `client.ip` and you want to check if it belongs to the CIDR blocks `192.168.0.0/16` or `10.0.0.0/8`, you can use the `cidrContains()` function as follows: | ||
|
||
``` | ||
cidrContains('/client.ip', '192.168.0.0/16', '10.0.0.0/8') | ||
``` | ||
{% include copy-curl.html %} | ||
|
||
This function returns `true` if the IP address matches any of the specified CIDR blocks or `false` if it does not. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
layout: default | ||
title: contains() | ||
parent: Functions | ||
grand_parent: Pipelines | ||
nav_order: 10 | ||
--- | ||
|
||
# contains() | ||
Check failure on line 9 in _data-prepper/pipelines/contains.md GitHub Actions / vale[vale] _data-prepper/pipelines/contains.md#L9
Raw output
|
||
|
||
The `contains()` function is used to check if a substring exists within a given string or the value of a field in an event. It takes two arguments: | ||
|
||
- The first argument is either a literal string or a JSON pointer that represents the field or value to be searched. | ||
|
||
- The second argument is the substring to be searched for within the first argument. | ||
The function returns `true` if the substring specified in the second argument is found within the string or field value represented by the first argument. It returns `false` if it is not. | ||
|
||
For example, if you want to check if the string `"abcd"` is contained within the value of a field named `message`, you can use the `contains()` function as follows: | ||
|
||
``` | ||
contains('/message', 'abcd') | ||
``` | ||
{% include copy-curl.html %} | ||
|
||
This will return `true` if the field `message` contains the substring `abcd` or `false` if it does not. | ||
|
||
Alternatively, you can also use a literal string as the first argument: | ||
|
||
``` | ||
contains('This is a test message', 'test') | ||
``` | ||
{% include copy-curl.html %} | ||
|
||
In this case, the function will return `true` because the substring `test` is present within the string `This is a test message`. | ||
|
||
Note that the `contains()` function performs a case-sensitive search by default. If you need to perform a case-insensitive search, you can use the `containsIgnoreCase()` function instead. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"under" => "for"?