Is it possible to pass the query parameters for a search in the Sumologic URL?
Hi, Is there a way I can parse url parameter from my Sumologic url? For example :
https://service.sumologic.com/ui/dashboard.html?k=DashboardKey¶m*eq*value
where param is the field name and value is the specific value.
I am able to create the url using tourl() method, but not sure how to access the parameter in the dashboard search query. Looking for help & suggestions
-
Official comment
Hi Chitra,
I apologize for the delayed reply.
Here is a documentation link that has the following procedure that talks about how to pass the query parameters for a search in a URL
Use a URL to Run a SearchYou can create a custom URL to launch a log search in Sumo Logic.Syntax
https://<endpoint>/ui/index.html#section/search/@<start>,<end>@<urlEncodedQuery>
-
<endpoint>
is your Sumo Logic service endpoint. See Sumo Logic Endpoints and Firewall Security for the endpoint URLs. -
<start>
is the start of your log query time range, the value can be either:- in milliseconds since epoch.
- a relative time range expression.
-
<end>
is the end of your log query time range, the value can be either:- in milliseconds since epoch.
- a relative time range expression. You can omit the
<end>
value and the current time (now
) is assumed.
-
<urlEncodedQuery>
is the text of your log search query in URL encoded format.
Hope that helpsKind regardsRaghuComment actions
Please sign in to leave a comment.
Comments
1 comment