VMware Cloud Community
Silvester
Contributor
Contributor

How to query URl with qusetion mark in Log Insight?

Dear all,

I have a requriement to query URLs like "/dac/rest/1.0/asset/list?workspaceId=701a551a-0e46-4e2b-b260-d8dcd4dda868"  in Log Insight.

Then I found the query returns nothing because there is a question mark inside the URL. In other words, I can query "/dac/rest/1.0/asset/list" and "workspaceId=701a551a-0e46-4e2b-b260-d8dcd4dda868" but I can't query "/dac/rest/1.0/asset/list?workspaceId=701a551a-0e46-4e2b-b260-d8dcd4dda868"

May I know whether we do have a workaround here?

Thanks

Silvester

0 Kudos
1 Reply
sflanders
Commander
Commander

Asterisk (*) and question mark (?) are reserved by Log Insight to support globbing. The problem you are running into is that question mark means "exactly one non-white space character". The workaround is just to replace the question mark with a space.

Hope this helps! === If you find this information useful, please award points for "correct" or "helpful". ===
0 Kudos