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

fix(comms): GetLogs use WsLogaccess.LogAccessType for filters #4213

Merged

Conversation

jeclrsg
Copy link
Contributor

@jeclrsg jeclrsg commented Jul 19, 2024

If the fields returned by WsLogaccess.GetLogAccessInfo exist in WsLogaccess.LogAccessType, have the filter use those categories, otherwise use the field defined by the log engine in the column map.

This is a preliminary attempt at support for the Grafana Loki engine.

Also, fixes an issue where searching by container name wouldn't return any log messages for ephemeral containers, eg "hthor-job-W2024..." as well as "hthor"

Checklist:

  • The commit message is properly formatted and free of typos.
    • The commit message title makes sense in a changelog, by itself.
    • The commit message includes a "fixes" reference if appropriate.
    • The commit is signed.
  • The change has been fully tested:
    • I have viewed all related gallery items
    • I have viewed all related dermatology items
  • There are no similar instances of the same problem that should be addressed
    • I have addressed them here
    • I have raised new issues to address them separately

Testing:

If the fields returned by WsLogaccess.GetLogAccessInfo exist in
WsLogaccess.LogAccessType, have the filter use those categories,
otherwise use the field defined by the log engine in the column map.

This is a preliminary attempt at support for the Grafana Loki engine.

Also, fixes an issue where searching by container name wouldn't return
any log messages for ephemeral containers, eg "hthor-job-W2024..." as
well as "hthor"

Signed-off-by: Jeremy Clements <[email protected]>
@jeclrsg jeclrsg requested a review from GordonSmith July 19, 2024 18:51
@GordonSmith GordonSmith merged commit 33889e4 into hpcc-systems:trunk Jul 23, 2024
7 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.

2 participants