Skip to content

Feature/pipeline add condition should appear first in deferred expression#35

Merged
suryamajhi merged 3 commits intologpoint:mainfrom
suryamajhi:feature/pipeline-add-condition-should-appear-first-in-deferred-expression
Mar 6, 2026
Merged

Feature/pipeline add condition should appear first in deferred expression#35
suryamajhi merged 3 commits intologpoint:mainfrom
suryamajhi:feature/pipeline-add-condition-should-appear-first-in-deferred-expression

Conversation

@suryamajhi
Copy link
Copy Markdown
Contributor

@suryamajhi suryamajhi commented Mar 6, 2026

Summary

This PR introduces an enhancement for deferred expressions (regex/logpoint_defer_contains) in Logpoint Search Query after the conversion.
In deferred expression, if a selected pipeline adds a ADD condition in the query like norm_id, label or other fields, all of them are deferred after search command. But they don't have to. Placing these enriched fields by pipelines in simple query (before a pipe) can drastically reduce the search space of later process commands to execute.

Current Query

| process eval(...)
.
.
.
| search label="Create" label="Process" integrity_level="System" user_contains="true" "process" IN ["*\calc.exe", "*\wscript.exe", "*\cscript.exe", "*\hh.exe", "*\mshta.exe", "*\forfiles.exe", "*\ping.exe"] OR command_contains="true"

New Query

label="Process" label="Create"
| process eval(...)
.
.
.
| search integrity_level="System" user_contains="true" "process" IN ["*\calc.exe", "*\wscript.exe", "*\cscript.exe", "*\hh.exe", "*\mshta.exe", "*\forfiles.exe", "*\ping.exe"] OR command_contains="true"

…ession. This can massively reduce the search space process command executes on.
@suryamajhi suryamajhi self-assigned this Mar 6, 2026
@suryamajhi suryamajhi requested a review from d4rk-d4nph3 March 6, 2026 07:39
@suryamajhi suryamajhi added the enhancement New feature or request label Mar 6, 2026
Copy link
Copy Markdown

@d4rk-d4nph3 d4rk-d4nph3 left a comment

Choose a reason for hiding this comment

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

This is the way!

@suryamajhi suryamajhi merged commit 2a3639d into logpoint:main Mar 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants