List all saved log searches viewable by the user.

External Documentation

To learn more, visit the Sumo Logic documentation.

Parameters

ParameterDescription
LimitLimit the number of log searches returned in the response. Note: Valid range for the Limit parameter is 1-100.
Return All PagesAutomatically fetch all resources, page by page.
TokenContinuation token to get the next page of results.

Example Output

{
	"logSearches": [
		{
			"queryString": "error {{sourceCategory}}| count by _sourceCategory",
			"timeRange": {
				"type": "BeginBoundedTimeRange",
				"from": {
					"type": "RelativeTimeRangeBoundary",
					"relativeTime": "-15m"
				}
			},
			"runByReceiptTime": false,
			"queryParameters": [
				{
					"name": "sourceCategory",
					"description": "source category for the string",
					"dataType": "STRING",
					"value": "apache"
				}
			],
			"parsingMode": "AutoParse",
			"name": "Short title",
			"description": "Long and detailed description",
			"schedule": {
				"cronExpression": "0 0/15 * * * ? *",
				"displayableTimeRange": "-2h",
				"parseableTimeRange": {
					"type": "BeginBoundedTimeRange",
					"from": {
						"type": "RelativeTimeRangeBoundary",
						"relativeTime": "-15m"
					}
				},
				"timeZone": "string",
				"threshold": {
					"thresholdType": "string",
					"operator": "string",
					"count": 0
				},
				"notification": {
					"taskType": "string"
				},
				"scheduleType": "string",
				"muteErrorEmails": true,
				"parameters": [
					{
						"name": "string",
						"value": "string"
					}
				]
			},
			"properties": "{ \"key\": \"value\" }",
			"createdAt": "2018-10-16T09:10:00.000Z",
			"createdBy": "0000000006743FDD",
			"modifiedAt": "2018-10-16T09:10:00.000Z",
			"modifiedBy": "0000000006743FE8",
			"id": "000000000000001A",
			"parentId": "0000000000007D2B"
		}
	],
	"warnings": [
		"Invalid saved search: <saved_search_name>. Please validate your saved search."
	],
	"token": "GDCiRv4vebF3UWFJQ1kySXBOR3Bzh69GR0RyWm9vCtc"
}

Workflow Library Example

List Saved Log Searches with Sumo Logic and Send Results Via Email

Preview this Workflow on desktop