syslog fix #2825
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2825
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2825/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #2657
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/2657
Original created: 2026-02-01T08:35:54Z
Original updated: 2026-02-01T21:33:55Z
Original head: carverauto/serviceradar:fix/syslog-messages-missing-ui
Original base: staging
Original merged: 2026-02-01T21:33:53Z by @mfreeman451
User description
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
PR Type
Bug fix
Description
Refactored
processLogsTableto handle syslog messages correctlyReplaced generic OTEL table processor with dedicated log processing logic
Ensures all messages are tracked for acknowledgment regardless of parsing
Fixes missing syslog messages in UI by proper row collection and insertion
Diagram Walkthrough
File Walkthrough
processor.go
Refactor log processor for proper message handlingpkg/consumers/db-event-writer/processor.go
processOTELTablecall with dedicated inline logprocessing logic
acknowledged
instead of "OTEL logs"
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2657#issuecomment-3830622036
Original created: 2026-02-01T08:36:28Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
No security concerns identified
No security vulnerabilities detected by AI analysis. Human verification advised for critical code.🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
Generic: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status: Passed
Generic: Meaningful Naming and Self-Documenting Code
Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting
Status: Passed
Generic: Secure Logging Practices
Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.
Status: Passed
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status:
Unwrapped DB error: The database insert failure is returned without added context (e.g.,
table/rowcount/operation), reducing actionable debugging information.
Referred Code
Generic: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status:
Error exposure risk: The raw error from
p.db.InsertOTELLogsis propagated directly and may expose internaldatabase details depending on where this error is surfaced.
Referred Code
Generic: Security-First Input Validation and Data Handling
Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities
Status:
Unvalidated external input:
tableand parsed log data are used for database insertion without validation visible inthe diff, and it is unclear if the DB layer parameterizes/whitelists these inputs.
Referred Code
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2657#issuecomment-3830623365
Original created: 2026-02-01T08:37:41Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Prevent data loss on DB error
To prevent data loss on database insertion failure, return
nilinstead of theprocessedmessage slice, ensuring failed batches are not acknowledged and can beredelivered.
pkg/consumers/db-event-writer/processor.go [466-468]
Suggestion importance[1-10]: 10
__
Why: The suggestion correctly identifies a critical data loss bug where a database insertion failure would cause all messages in the batch to be acknowledged and lost, and provides the correct fix.
Only ack successfully parsed messages
Only add messages to the
processedslice after they have been successfullyparsed to avoid acknowledging and losing malformed messages.
pkg/consumers/db-event-writer/processor.go [441-460]
Suggestion importance[1-10]: 8
__
Why: The suggestion correctly identifies that malformed messages are incorrectly added to the
processedslice, which would lead to them being acknowledged and dropped, and proposes a fix to prevent this data loss.Chunk large insert operations
Implement batching for database inserts by breaking large sets of rows into
smaller chunks to prevent potential SQL errors and improve stability.
pkg/consumers/db-event-writer/processor.go [466-476]
[To ensure code accuracy, apply this suggestion manually]Suggestion importance[1-10]: 7
__
Why: The suggestion provides a valuable improvement for robustness by proposing to batch database inserts, which can prevent errors with large message volumes and improve performance.
Log insert errors with context
Add a detailed error log with context like table name and row count when a
database insertion fails to improve diagnostics.
pkg/consumers/db-event-writer/processor.go [466-468]
Suggestion importance[1-10]: 6
__
Why: This is a good suggestion for improving observability by logging the error with relevant context when a database insertion fails, which aids in debugging.
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/2657#issuecomment-3832096094
Original created: 2026-02-01T21:33:28Z
CI Feedback 🧐
A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
Action: build
Failed stage: Configure SRQL fixture database for tests [❌]
Failed test name: ""
Failure summary:
The action failed because a required secret for the test environment was not configured:
- The job
exited with code 1 after printing:
SRQL_TEST_DATABASE_CA_CERT secret must be configured to verifySRQL fixture TLS.(log line 714).- This indicates the workflow expects the secret
SRQL_TEST_DATABASE_CA_CERT(shown empty in the environment) to be set so it can verify TLS for theSRQL database fixture; without it, the script intentionally fails.
Relevant error logs: