Skip to content
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

[syslog processor] Cannot use a 'when' condition #36762

Closed
andrewkroh opened this issue Oct 5, 2023 · 2 comments · Fixed by #36767
Closed

[syslog processor] Cannot use a 'when' condition #36762

andrewkroh opened this issue Oct 5, 2023 · 2 comments · Fixed by #36767
Assignees
Labels

Comments

@andrewkroh
Copy link
Member

I think the syslog processor is not allowing the when condition because there is some validation of the allowed parameters and when is not included.

- syslog:
    when.regexp.message: '^<\d+>\d '
    field: message

unexpected when option in 0.syslog

checks.AllowedFields(
"field",
"format",
"timezone",
"overwrite_keys",
"ignore_missing",
"ignore_failure",
"tag",
),

@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@andrewkroh
Copy link
Member Author

Workaround:

- if:
    regexp.message: '^<\d+>\d '
  then:
    syslog:
      field: message

@andrewkroh andrewkroh self-assigned this Oct 5, 2023
andrewkroh added a commit to andrewkroh/beats that referenced this issue Oct 5, 2023
Fix the ability to use `when` conditions with the
syslog processor.

Fixes elastic#36762
andrewkroh added a commit that referenced this issue Oct 5, 2023
Fix the ability to use `when` conditions with the
syslog processor.

Fixes #36762
mergify bot pushed a commit that referenced this issue Oct 5, 2023
Fix the ability to use `when` conditions with the
syslog processor.

Fixes #36762

(cherry picked from commit c9d17a7)
mergify bot pushed a commit that referenced this issue Oct 5, 2023
Fix the ability to use `when` conditions with the
syslog processor.

Fixes #36762

(cherry picked from commit c9d17a7)
andrewkroh pushed a commit that referenced this issue Oct 5, 2023
)

Fix the ability to use `when` conditions with the
syslog processor.

Fixes #36762

(cherry picked from commit c9d17a7)
andrewkroh added a commit that referenced this issue Oct 5, 2023
Fix the ability to use `when` conditions with the
syslog processor.

Fixes #36762

(cherry picked from commit c9d17a7)

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
Scholar-Li pushed a commit to Scholar-Li/beats that referenced this issue Feb 5, 2024
Fix the ability to use `when` conditions with the
syslog processor.

Fixes elastic#36762
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants