zqr10159 opened a new pull request, #3887: URL: https://github.com/apache/hertzbeat/pull/3887
This pull request introduces support for log content search filtering and expands GreptimeDB integration to include the PostgreSQL endpoint in both E2E tests and configuration. The main changes are grouped into API enhancements for log search functionality and improvements to GreptimeDB test setup and configuration. **Log search functionality improvements:** * Added a `search` parameter to log query API endpoints in `LogQueryController`, allowing users to filter logs by content keyword. The filtering is case-insensitive and matches substrings within log entries. [[1]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8R79-R85) [[2]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L102-R107) [[3]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L142-R149) [[4]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L180-R189) [[5]](diffhunk://#diff-51b4f2c56e559867ba11817ae8f8036f5eb105d029908d113ed85d4ab0c04e46R53-R58) [[6]](diffhunk://#diff-51b4f2c56e559867ba11817ae8f8036f5eb105d029908d113ed85d4ab0c04e46R93-R104) * Updated backend methods and tests to support the new `search` parameter, ensuring that filtering logic and pagination work correctly with content-based queries. [[1]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L202-R224) [[2]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L225-L226) [[3]](diffhunk://#diff-22b57d78d1b9a9e8f04b974121c2081f20a9d62ffbc989cc51faec27d89f9420R90-R95) [[4]](diffhunk://#diff-22b57d78d1b9a9e8f04b974121c2081f20a9d62ffbc989cc51faec27d89f9420R132-R137) [[5]](diffhunk://#diff-22b57d78d1b9a9e8f04b974121c2081f20a9d62ffbc989cc51faec27d89f9420R170-R172) [[6]](diffhunk://#diff-22b57d78d1b9a9e8f04b974121c2081f20a9d62ffbc989cc51faec27d89f9420R196-R198) [[7]](diffhunk://#diff-22b57d78d1b9a9e8f04b974121c2081f20a9d62ffbc989cc51faec27d89f9420R226-R228) [[8]](diffhunk://#diff-22b57d78d1b9a9e8f04b974121c2081f20a9d62ffbc989cc51faec27d89f9420R254-R256) [[9]](diffhunk://#diff-22b57d78d1b9a9e8f04b974121c 2081f20a9d62ffbc989cc51faec27d89f9420R274-R276) **GreptimeDB integration and configuration:** * Added support for the GreptimeDB PostgreSQL endpoint (`GREPTIME_PG_PORT`, port 4003) in E2E test containers for both alert and log storage tests, including startup commands and port exposure. [[1]](diffhunk://#diff-a89c2da5758c23607679b295e70e660ff77f31e135200d477ce4169232a865baR73) [[2]](diffhunk://#diff-a89c2da5758c23607679b295e70e660ff77f31e135200d477ce4169232a865baL93-R99) [[3]](diffhunk://#diff-c21ff23b47d10edab1fd1a2c733a990361a386d15852bfde8b78c5414c77b35fR62) [[4]](diffhunk://#diff-c21ff23b47d10edab1fd1a2c733a990361a386d15852bfde8b78c5414c77b35fL78-R84) * Updated dynamic property registration in E2E tests to include the new PostgreSQL endpoint for GreptimeDB. [[1]](diffhunk://#diff-a89c2da5758c23607679b295e70e660ff77f31e135200d477ce4169232a865baR111) [[2]](diffhunk://#diff-c21ff23b47d10edab1fd1a2c733a990361a386d15852bfde8b78c5414c77b35fR95) * Added the `postgres-endpoint` property to the GreptimeDB configuration in `application-test.yml` for test environments. * Updated test queries to match the new method signatures that include the `search` parameter. These changes collectively enhance log filtering capabilities for users and improve the reliability and completeness of GreptimeDB integration in the test suite. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
