-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support log pattern if there is dsl and index passed for alert summary. #339
Conversation
Signed-off-by: Heng Qian <[email protected]>
Signed-off-by: Heng Qian <[email protected]>
let result = response.body.inference_results[0].output[0].result; | ||
result = JSON.parse(result).output.text; | ||
return res.ok({ body: result }); | ||
return res.ok({ body: response.body.inference_results[0].output[0].result }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So both agents(tools): LOG_PATTERN_SUMMARY_AGENT_CONFIG_ID
and SUMMARY_AGENT_CONFIG_ID
has changed the output from plain text to json?
Never mind, it seems the output structure changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Only os_insight
agent has change its output structure from json to text. Because there is a post function added in connector:
"post_process_function": "return params.output.text;"
…y. (#339) * Support log pattern if there is dsl and index passed for alert summary. Signed-off-by: Heng Qian <[email protected]> * Add CHANGELOG.md Signed-off-by: Heng Qian <[email protected]> --------- Signed-off-by: Heng Qian <[email protected]> (cherry picked from commit 5c32cca) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…y. (#339) (#340) * Support log pattern if there is dsl and index passed for alert summary. Signed-off-by: Heng Qian <[email protected]> * Add CHANGELOG.md Signed-off-by: Heng Qian <[email protected]> --------- Signed-off-by: Heng Qian <[email protected]> (cherry picked from commit 5c32cca) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…y. (opensearch-project#339) * Support log pattern if there is dsl and index passed for alert summary. Signed-off-by: Heng Qian <[email protected]> * Add CHANGELOG.md Signed-off-by: Heng Qian <[email protected]> --------- Signed-off-by: Heng Qian <[email protected]>
Description
Support log pattern feature. It will use agent
os_summary_with_logPattern
if there is parameterdsl
andindex
passed.Other minor change includes:
output
directly due to flow framework script change.Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.