Skip to content

fix: force_log_type flag for ingest log method#174

Merged
mihirvala08 merged 2 commits intomainfrom
fix/log-ingest-force-log-type
Feb 3, 2026
Merged

fix: force_log_type flag for ingest log method#174
mihirvala08 merged 2 commits intomainfrom
fix/log-ingest-force-log-type

Conversation

@mihirvala08
Copy link
Collaborator

Summary

Fixed ingest_log() method to correctly skip log type validation when force_log_type=True, preventing unnecessary API calls.

resolves #173

Problem

The force_log_type parameter was intended to bypass log type validation (which requires additional IAM access), but the implementation was checking the API before evaluating the flag due to incorrect condition order.

Changes

  • src/secops/chronicle/log_ingest.py: Fixed condition order in ingest_log() method (line 825)
  • tests/chronicle/test_log_ingest.py: Added unit tests to verify:

@mihirvala08
Copy link
Collaborator Author

/run-integration-tests bc84f8a

@mihirvala08
Copy link
Collaborator Author

/run-integration-tests 604f293

@mihirvala08 mihirvala08 merged commit ca82942 into main Feb 3, 2026
8 checks passed
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.

Support ingestion with Editor role

1 participant