zqr10159 opened a new pull request, #3880:
URL: https://github.com/apache/hertzbeat/pull/3880

   This pull request introduces several improvements and new features related 
to log querying and ingestion. The main focus is on enhancing log search 
capabilities by adding support for keyword-based filtering in log queries and 
statistics endpoints. Additionally, there are adjustments to logging verbosity 
and updates to dependencies, including support for PostgreSQL in the warehouse 
module.
   
   **Log Query and Statistics Enhancements:**
   
   * Added a `search` keyword parameter to log query and statistics endpoints 
in `LogQueryController`, enabling users to filter logs by content. All relevant 
controller methods and internal helper methods now support this new parameter. 
[[1]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8R79-R85)
 
[[2]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L102-R107)
 
[[3]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L142-R149)
 
[[4]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L180-R189)
 
[[5]](diffhunk://#diff-505a86fb156015c2f8c6d87397877ebcf5f98996ca85b9ee459358d37d2de8e8L202-R224)
   * Updated the internal log filtering and pagination methods to pass and 
handle the new `search` parameter, ensuring consistent keyword-based log 
filtering across all queries.
   
   **Logging Verbosity Adjustments:**
   
   * Changed log statements from `info` to `debug` level in both 
`LogIngestionController` and `OtlpLogProtocolAdapter` to reduce log noise 
during normal operation. 
[[1]](diffhunk://#diff-75ed0b8139fbf135f987a812717f83bd7eb61a72e93ca6c0ab1b63eafbee6409L63-R63)
 
[[2]](diffhunk://#diff-da7cef08bccccdb4d2755554f6da76bc63f52ce968dc2bcfee7dbf9c10be5a86L76-R76)
   
   **Warehouse Module Improvements:**
   
   * Added PostgreSQL connection support in the warehouse configuration 
(`application.yml`) and included the PostgreSQL JDBC driver as a dependency in 
`hertzbeat-warehouse/pom.xml`. 
[[1]](diffhunk://#diff-fbbd6cb1f62c63b9c263c9df8c2234f065b8df92bac40f984138d1f050333ed1R212)
 
[[2]](diffhunk://#diff-213734eecc428371acd512a382769c79b04d2ad92cf2700c83892ec4d3d0463dR152-R155)
   * Added `spring-boot-starter-jdbc` as a provided dependency to support 
JDBC-based integrations.
   
   **Code and Dependency Cleanup:**
   
   * Removed redundant comments from the `pom.xml` file for better readability 
and maintainability. 
[[1]](diffhunk://#diff-213734eecc428371acd512a382769c79b04d2ad92cf2700c83892ec4d3d0463dL32-L49)
 
[[2]](diffhunk://#diff-213734eecc428371acd512a382769c79b04d2ad92cf2700c83892ec4d3d0463dL64-L70)
 
[[3]](diffhunk://#diff-213734eecc428371acd512a382769c79b04d2ad92cf2700c83892ec4d3d0463dL86-L98)
 
[[4]](diffhunk://#diff-213734eecc428371acd512a382769c79b04d2ad92cf2700c83892ec4d3d0463dL122)
 
[[5]](diffhunk://#diff-213734eecc428371acd512a382769c79b04d2ad92cf2700c83892ec4d3d0463dL133-L139)
   
   These changes collectively improve log search functionality, optimize 
logging output, and extend database support for the warehouse module.## What's 
changed?
   
   


-- 
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]

Reply via email to