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

Create Integration Tests for journald Log Collection Integration #22654

Closed
4 tasks done
Tracked by #12862
JcabreraC opened this issue Mar 25, 2024 · 3 comments · Fixed by #22843
Closed
4 tasks done
Tracked by #12862

Create Integration Tests for journald Log Collection Integration #22654

JcabreraC opened this issue Mar 25, 2024 · 3 comments · Fixed by #22843

Comments

@JcabreraC
Copy link
Member

JcabreraC commented Mar 25, 2024

Wazuh version Component Install type Install method Platform
4.9.0 Logcollector Manager/Agent Packages/Sources OS version

Description

The goal of this issue is to develop integration tests that evaluate the journald log collection feature within the context of Wazuh's broader log collection and processing ecosystem.

Requirements

  • End-to-End Functionality: Tests should assess the feature from initialization through to log collection, processing, and reporting.
  • Interoperability: Verify the journald log collection works seamlessly with existing log collection mechanisms.
  • Configuration Dynamics: Test the handling of various journald log collection configurations and their effects on the system.
  • Performance and Scalability: Include scenarios that evaluate the impact of the journald log collection on system performance and scalability.

Tasks

  • Define integration test scenarios that cover a wide range of use cases and configurations.
  • Utilize the existing integration testing framework to implement the tests.
  • Conduct the tests to ensure the journald log collection integrates well with other system components.
  • Report on the integration tests, including any recommendations for improvements.

Notes

As with unit testing, the specifics of the integration testing framework are currently undefined. This issue will be refined as more information becomes available.

@juliancnn
Copy link
Member

Daily Progress Update

Today marked significant advancements in our integration testing framework for the journald log collection feature. We've successfully updated the testing framework to include essential capabilities for configuration verification. This enhancement has enabled us to develop comprehensive configuration tests, encompassing both filters and log merging functionalities.

One area that requires further exploration is the sequence in which logs are retrieved and documented within the Wazuh log. While we currently verify the presence of specific messages, their exact chronological order has not been strictly enforced or checked. Determining the necessity of sequential log analysis will be a key focus moving forward to ensure thorough and accurate integration testing.

@juliancnn
Copy link
Member

Daily Progress Update

Today marked a notable stride forward in our project, with the successful integration of new test cases tailored for log collection and journal filtering. Our focus for tomorrow is set on exploring methodologies to implement tests for the only-future-event = no feature. This functionality is pivotal as it enables the collection of logs that were generated during periods when the agent was offline. Our goal is to ensure comprehensive test coverage, addressing this essential aspect of log collection.

@juliancnn
Copy link
Member

Daily Progress Update

Today, we've made significant headway by implementing an initial approach to the integration test for the only-future-event=no feature, introducing a foundational test case. Our next steps involve broadening this suite by crafting and incorporating additional test scenarios. One notable gap identified for future testing is the absence of cases where the event timestamp surpasses the system time. Addressing this will be our priority moving forward to ensure our testing framework comprehensively covers all possible scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants