-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Revamp the Filters page
#2717
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
Merged
Merged
Revamp the Filters page
#2717
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
07b70fe
Revamp the `Filters` page
ppkarwasz 42654a3
Fix formatting
ppkarwasz d160709
Missing licenses
ppkarwasz c934a48
Apply review suggestions (1)
ppkarwasz 2cde19b
Apply review suggestions (2)
ppkarwasz 6448bdb
Fix `BurstFilter` description
ppkarwasz 4d0d7aa
Apply review suggestions (3)
ppkarwasz 9032814
Apply review suggestions (4)
ppkarwasz 45172e2
Update `co.elastic.clients:elasticsearch-java` to version `8.14.2` (#…
asf-rm f7b2862
Update `net.javacrumbs.json-unit:json-unit` to version `2.40.0` (#2708)
asf-rm 641004c
Revamp `cloud.adoc` for service-oriented architectures (#2715)
vy 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
24 changes: 24 additions & 0 deletions
24
src/site/antora/modules/ROOT/examples/cloud/logstash/log4j2.json
This file contains hidden or 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 @@ | ||
| { | ||
| "Configuration": { | ||
| "Appenders": { | ||
| // tag::socketAppender[] | ||
| "Socket": { | ||
| "name": "SOCKET", | ||
| "host": "localhost", | ||
| "port": 12345, | ||
| "JsonTemplateLayout": { | ||
| "nullEventDelimiterEnabled": true | ||
| } | ||
| } | ||
| // end::socketAppender[] | ||
| }, | ||
| "Loggers": { | ||
| "Root": { | ||
| "level": "WARN", | ||
| "AppenderRef": { | ||
| "ref": "SOCKET" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletions
28
src/site/antora/modules/ROOT/examples/cloud/logstash/log4j2.properties
This file contains hidden or 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,28 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to you under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
|
|
||
| # tag::socketAppender[] | ||
| appender.0.type = Socket | ||
| appender.0.name = SOCKET | ||
| appender.0.host = localhost | ||
| appender.0.port = 12345 | ||
| appender.0.layout.type = JsonTemplateLayout | ||
| appender.0.layout.nullEventDelimiterEnabled = true | ||
| # end::socketAppender[] | ||
|
|
||
| rootLogger.level = WARN | ||
| rootLogger.appenderRef.0.ref = SOCKET |
38 changes: 38 additions & 0 deletions
38
src/site/antora/modules/ROOT/examples/cloud/logstash/log4j2.xml
This file contains hidden or 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,38 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| ~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
| ~ contributor license agreements. See the NOTICE file distributed with | ||
| ~ this work for additional information regarding copyright ownership. | ||
| ~ The ASF licenses this file to you under the Apache License, Version 2.0 | ||
| ~ (the "License"); you may not use this file except in compliance with | ||
| ~ the License. You may obtain a copy of the License at | ||
| ~ | ||
| ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
| ~ | ||
| ~ Unless required by applicable law or agreed to in writing, software | ||
| ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ~ See the License for the specific language governing permissions and | ||
| ~ limitations under the License. | ||
| --> | ||
| <Configuration xmlns="https://logging.apache.org/xml/ns" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation=" | ||
| https://logging.apache.org/xml/ns | ||
| https://logging.apache.org/xml/ns/log4j-config-2.xsd"> | ||
|
|
||
| <Appenders> | ||
| <!-- tag::socketAppender[] --> | ||
| <Socket name="SOCKET" host="localhost" port="12345"> | ||
| <JsonTemplateLayout nullEventDelimiterEnabled="true"/> | ||
| </Socket> | ||
| <!-- end::socketAppender[] --> | ||
| </Appenders> | ||
|
|
||
| <Loggers> | ||
| <Root level="WARN"> | ||
| <AppenderRef ref="SOCKET"/> | ||
| </Root> | ||
| </Loggers> | ||
|
|
||
| </Configuration> |
33 changes: 33 additions & 0 deletions
33
src/site/antora/modules/ROOT/examples/cloud/logstash/log4j2.yaml
This file contains hidden or 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,33 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to you under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| Configuration: | ||
|
|
||
| Appenders: | ||
| # tag::socketAppender[] | ||
| Socket: | ||
| name: "SOCKET" | ||
| host: "localhost" | ||
| port: 12345 | ||
| JsonTemplateLayout: | ||
| nullEventDelimiterEnabled: true | ||
| # end::socketAppender[] | ||
|
|
||
| Loggers: | ||
| Root: | ||
| level: "WARN" | ||
| AppenderRef: | ||
| ref: "SOCKET" |
38 changes: 38 additions & 0 deletions
38
src/site/antora/modules/ROOT/examples/manual/filters/ContextMapFilter.json
This file contains hidden or 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,38 @@ | ||
| { | ||
| "Configuration": { | ||
| "monitorInterval": 10, | ||
| "Appenders": { | ||
| "Console": { | ||
| "name": "CONSOLE", | ||
| "JsonTemplateLayout": {} | ||
| } | ||
| }, | ||
| "Loggers": { | ||
| "Root": { | ||
| "level": "ALL", | ||
| "AppenderRef": { | ||
| "ref": "CONSOLE" | ||
| } | ||
| } | ||
| }, | ||
| // tag::filter[] | ||
| "ContextMapFilter": { | ||
| "operator": "AND", | ||
| "KeyValuePair": [ | ||
| { | ||
| "key": "clientId", | ||
| "value": "1234" | ||
| }, | ||
| { | ||
| "key": "userId", | ||
| "value": "alice" | ||
| }, | ||
| { | ||
| "key": "userId", | ||
| "value": "bob" | ||
| } | ||
| ] | ||
| } | ||
| // end::filter[] | ||
| } | ||
| } | ||
41 changes: 41 additions & 0 deletions
41
src/site/antora/modules/ROOT/examples/manual/filters/ContextMapFilter.properties
This file contains hidden or 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,41 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to you under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| monitorInterval = 10 | ||
|
|
||
| appender.0.type = Console | ||
| appender.0.name = CONSOLE | ||
| appender.0.layout.type = JsonTemplateLayout | ||
|
|
||
| rootLogger.level = ALL | ||
| rootLogger.appenderRef.0.ref = CONSOLE | ||
|
|
||
| # tag::filter[] | ||
| filter.0.type = ContextMapFilter | ||
| filter.0.operator = AND | ||
|
|
||
| filter.0.kv0.type = KeyValuePair | ||
| filter.0.kv0.key = clientId | ||
| filter.0.kv0.value = 1234 | ||
|
|
||
| filter.0.kv1.type = KeyValuePair | ||
| filter.0.kv1.key = userId | ||
| filter.0.kv1.value = alice | ||
|
|
||
| filter.0.kv2.type = KeyValuePair | ||
| filter.0.kv2.key = userId | ||
| filter.0.kv2.value = bob | ||
| # end::filter[] |
42 changes: 42 additions & 0 deletions
42
src/site/antora/modules/ROOT/examples/manual/filters/ContextMapFilter.xml
This file contains hidden or 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,42 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| ~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
| ~ contributor license agreements. See the NOTICE file distributed with | ||
| ~ this work for additional information regarding copyright ownership. | ||
| ~ The ASF licenses this file to you under the Apache License, Version 2.0 | ||
| ~ (the "License"); you may not use this file except in compliance with | ||
| ~ the License. You may obtain a copy of the License at | ||
| ~ | ||
| ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
| ~ | ||
| ~ Unless required by applicable law or agreed to in writing, software | ||
| ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ~ See the License for the specific language governing permissions and | ||
| ~ limitations under the License. | ||
| --> | ||
| <Configuration xmlns="https://logging.apache.org/xml/ns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation=" | ||
| https://logging.apache.org/xml/ns | ||
| https://logging.apache.org/xml/ns/log4j-config-2.xsd" | ||
| monitorInterval="10"> | ||
| <Appenders> | ||
| <Console name="CONSOLE"> | ||
| <JsonTemplateLayout/> | ||
| </Console> | ||
| </Appenders> | ||
| <Loggers> | ||
| <Root level="ALL"> | ||
| <AppenderRef ref="CONSOLE"/> | ||
| </Root> | ||
| </Loggers> | ||
| <!-- tag::filter[] --> | ||
| <ContextMapFilter operator="AND"> | ||
| <!-- tag::kvp[] --> | ||
| <KeyValuePair key="clientId" value="1234"/> | ||
| <KeyValuePair key="userId" value="alice"/> | ||
| <KeyValuePair key="userId" value="bob"/> | ||
| <!-- end::kvp[] --> | ||
| </ContextMapFilter> | ||
| <!-- end::filter[] --> | ||
| </Configuration> |
38 changes: 38 additions & 0 deletions
38
src/site/antora/modules/ROOT/examples/manual/filters/ContextMapFilter.yaml
This file contains hidden or 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,38 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to you under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| Configuration: | ||
| monitorInterval: 10 | ||
| Appenders: | ||
| Console: | ||
| name: "CONSOLE" | ||
| JsonTemplateLayout: { } | ||
| Loggers: | ||
| Root: | ||
| level: "ALL" | ||
| AppenderRef: | ||
| ref: "CONSOLE" | ||
| # tag::filter[] | ||
| ContextMapFilter: | ||
| operator: "AND" | ||
| KeyValuePair: | ||
| - key: "clientId" | ||
| value: "1234" | ||
| - key: "userId" | ||
| value: "alice" | ||
| - key: "userId" | ||
| value: "bob" | ||
| # end::filter[] |
35 changes: 35 additions & 0 deletions
35
src/site/antora/modules/ROOT/examples/manual/filters/DynamicThresholdFilter.json
This file contains hidden or 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,35 @@ | ||
| { | ||
| "Configuration": { | ||
| "monitorInterval": 10, | ||
| "Appenders": { | ||
| "Console": { | ||
| "name": "CONSOLE", | ||
| "JsonTemplateLayout": {} | ||
| } | ||
| }, | ||
| "Loggers": { | ||
| "Root": { | ||
| "level": "ALL", | ||
| "AppenderRef": { | ||
| "ref": "CONSOLE" | ||
| } | ||
| } | ||
| }, | ||
| // tag::filter[] | ||
| "DynamicThresholdFilter": { | ||
| "key": "loginId", // <3> | ||
| "defaultThreshold": "ERROR", | ||
| "KeyValuePair": [ | ||
| { // <1> | ||
| "key": "alice", | ||
| "value": "DEBUG" | ||
| }, | ||
| { // <2> | ||
| "key": "bob", | ||
| "value": "INFO" | ||
| } | ||
| ] | ||
| } | ||
| // end::filter[] | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.