Skip to content

Issue 30: Add Rule/Condition objects to allow specifying eventType based on multiple factors#31

Open
eemhu wants to merge 6 commits into
teragrep:mainfrom
eemhu:issue-30
Open

Issue 30: Add Rule/Condition objects to allow specifying eventType based on multiple factors#31
eemhu wants to merge 6 commits into
teragrep:mainfrom
eemhu:issue-30

Conversation

@eemhu
Copy link
Copy Markdown
Contributor

@eemhu eemhu commented Feb 28, 2025

Fixes #30

…; Add ContainerRule & test; Add DefaultCondition; Make EnvironmentSource map immutable; change NLFPlugin to use Rules; change error message asserts to match new logic; add Rule interface; add RuleStub; add SyslogProcessNameCondition; add SyslogRule & test; remove processName validation from SyslogType; add TypeCondition; add TypeSuffixCondition
@eemhu eemhu self-assigned this Feb 28, 2025
@eemhu eemhu requested a review from MoonBow-1 March 10, 2025 08:29
Copy link
Copy Markdown
Contributor

@MoonBow-1 MoonBow-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was a bit confused about the Predicate generic, but figured their use of the .test method.

A description of the PR would've been nice to have, since there is only an issue, which contains a request for a feature.

Comment thread src/main/java/com/teragrep/nlf_01/condition/DefaultCondition.java
@eemhu eemhu requested a review from MoonBow-1 March 10, 2025 11:19
Copy link
Copy Markdown
Contributor

@MoonBow-1 MoonBow-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A question about the behavior of the test(ParsedEvent parsedEvent) method

Comment thread src/main/java/com/teragrep/nlf_01/condition/SyslogProcessNameCondition.java Outdated
@eemhu eemhu requested a review from MoonBow-1 March 10, 2025 12:27
@eemhu eemhu marked this pull request as ready for review March 10, 2025 13:53
@MoonBow-1
Copy link
Copy Markdown
Contributor

@eemhu are you able to rebase this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allow more qualifiers instead of just type for a handlER selection

3 participants