Skip to main content

Use a URL to Run a Search

You can create a custom URL to launch a log search in Sumo Logic.

Syntax

https://<endpoint>/ui/#/search/create?query=<urlEncodedQuery>&startTime=<start>&endTime=<end>
  • <endpoint> is your Sumo Logic service endpoint. See Sumo Logic Endpoints and Firewall Security for the endpoint URLs.

  • <urlEncodedQuery> is the text of your log search query in URL encoded format.

  • <start> is the start of your log query time range, the value can be either:

  • <end> is the end of your log query time range, the value can be either:

Example

Create a URL for the following log query, using a relative time range expression of -10w to -1w.:

test query | count by _source

The custom URL that launches this log query in the Sumo Logic Search page would be similar to the following. The exact URL would depend on your Sumo Logic account endpoint, as listed in Sumo Logic Endpoints and Firewall Security

https://service.sumologic.com/ui/#/search/create?query=test%20query%20%7C%20count%20by%20_source&startTime=-10w&endTime=-1w
Legal
Privacy Statement
Terms of Use

Copyright © 2023 by Sumo Logic, Inc.