Add log helper script#366
Open
norman465 wants to merge 2 commits into
Open
Conversation
Member
norman465
commented
May 5, 2026
- Add log helper script
jeremiaswerner
requested changes
May 26, 2026
Collaborator
jeremiaswerner
left a comment
There was a problem hiding this comment.
Awesome! I love it. Just a few small requests :-)
| fi | ||
|
|
||
| if [[ -z "${ICL_ENDPOINT}" ]]; then | ||
| ICL_ENDPOINT="$(ibmcloud resource service-instance ${ICL_NAME} -o json | jq -r '.[].extensions.external_api')" |
Collaborator
There was a problem hiding this comment.
This is missing a protocol, e.g. https://
| ;; | ||
|
|
||
| *) | ||
| echo "Unknown flag $1" |
Collaborator
There was a problem hiding this comment.
a one line usage would be nice, e.g. ./fleet_logs --tier <...> --fleet-id <...> ...
| #### Using helper scripts | ||
|
|
||
| If you want to quickly iterate you may use the helper script `fleet-logs` in order to display fleet logs directly in your terminal. The scripts uses a `LOGS_URL` env variable targetting your ICL endpoint, or if unset will try to find that ICL endpoint of your ICL instance. Additionally, you may specify `--fleet-id <fleet-id>`, `--since <duration>`, `--tier <search-tier>` and `--output <output-format>` to parameterize your query. Available values are directly taken from `ibmcloud logs query --help`. | ||
|
|
Collaborator
There was a problem hiding this comment.
useful additional query statements would be the subCompontentType and the individual --task <task-id>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.