Skip to main content

collectors

Creates, updates, deletes, gets or lists a collectors resource.

Overview

Namecollectors
TypeResource
Idsumologic.ingest_budgets.collectors

Fields

The following fields are returned by SELECT queries:

A paginated list of Collectors.

NameDatatypeDescription
idstringUnique identifier for the Collector.
namestringThe name of the Collector.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getAssignedCollectorsselectid, regionlimit, tokenGet a list of Collectors assigned to an ingest budget. The response is paginated with a default limit of 100 Collectors per page.
removeCollectorFromBudgetdeleteid, collectorId, regionRemove Collector from a budget.
assignCollectorToBudgetexecid, collectorId, regionAssign a Collector to a budget.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
collectorIdstringIdentifier of the Collector to assign.
idstringIdentifier of the ingest budget to assign to the Collector.
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)
limitinteger (int32)Limit the number of Collectors returned in the response. The number of Collectors returned may be less than the limit.
tokenstringContinuation token to get the next page of results. A page object with the next continuation token is returned in the response body. Subsequent GET requests should specify the continuation token to get the next page of results.

SELECT examples

Get a list of Collectors assigned to an ingest budget. The response is paginated with a default limit of 100 Collectors per page.

SELECT
id,
name
FROM sumologic.ingest_budgets.collectors
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
AND limit = '{{ limit }}'
AND token = '{{ token }}'
;

DELETE examples

Remove Collector from a budget.

DELETE FROM sumologic.ingest_budgets.collectors
WHERE id = '{{ id }}' --required
AND collectorId = '{{ collectorId }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Assign a Collector to a budget.

EXEC sumologic.ingest_budgets.collectors.assignCollectorToBudget 
@id='{{ id }}' --required,
@collectorId='{{ collectorId }}' --required,
@region='{{ region }}' --required
;