Skip to content

Filter NAP logs by Severity#1169

Merged
aphralG merged 18 commits intomainfrom
add-filter-logs-by-severity
Jul 23, 2025
Merged

Filter NAP logs by Severity#1169
aphralG merged 18 commits intomainfrom
add-filter-logs-by-severity

Conversation

@aphralG
Copy link
Contributor

@aphralG aphralG commented Jul 16, 2025

Proposed changes

Added filter operator to TcplogReceiver for NAP Syslog Servers.
The priority attribute is divided by 8 and if the remainder is greater than 4 the log is dropped.

0 | Emergency: system is unusable
1 | Alert: action must be taken immediately
2 | Critical: critical conditions
3 | Error: error conditions
4 | Warning: warning conditions
5 | Notice: normal but significant condition
6 | Informational: informational messages
7 | Debug: debug-level messages

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@aphralG aphralG self-assigned this Jul 16, 2025
@aphralG aphralG requested a review from a team as a code owner July 16, 2025 13:23
@github-actions github-actions bot added the chore Pull requests for routine tasks label Jul 16, 2025
@dhurley dhurley added the v3.x Issues and Pull Requests related to the major version v3 label Jul 17, 2025
Base automatically changed from add-support-multiple-nap-syslog-servers to main July 17, 2025 14:57
@aphralG aphralG merged commit 66d9d31 into main Jul 23, 2025
25 checks passed
@aphralG aphralG deleted the add-filter-logs-by-severity branch July 23, 2025 08:38
spencerugbo pushed a commit that referenced this pull request Jul 23, 2025
Akshay2191 pushed a commit that referenced this pull request Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Pull requests for routine tasks v3.x Issues and Pull Requests related to the major version v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants