Skip to content

ibmcloud cli query needs improvements and examples #23

@httran13

Description

@httran13

Which topic are you reporting about?

https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-cloud-logs-cli-temp

What do you think needs to be updated?

commandline query needs some examples.

I have working Dataprime queries that I can use in the UI with some filtering but when I tried to use the same query on commandline it fails.

I've tried multiple ways of escaping special characters with no success, It could also be the commandline query is incorrectly parsing text.

ic logs query --query 'filter $l.applicationname == myapp-dev' --output json
ic logs query --query 'filter $l.applicationname == "myapp-dev"' --output json
ic logs query --query 'filter $l.applicationname == 'myapp\-dev'' --output json

I've tried several variants of the above query with no

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions