Manage Digest Partitions

Digest partitions route the incoming data while it is "in progress".

For more information, read the Digest Rules documentation.

Warning

Do not POST to this API unless the cluster is running fine, with all members connected and active. All digests stop for a few seconds when being applied.

Digest does not start before all nodes are ready, thus if a node is failing, digest does not resume.

Show digest partition information

GET/POST the setting to hand-edit where each partition goes. You cannot reduce the number of partitions.

Description Returns a list of the digest partitions.
MethodGET /api/v1/clusterconfig/ingestpartitions
Authentication Requiredyes
Return Codes
200 Request complete
400 Bad authentication
500 Request failed
http
GET /api/v1/clusterconfig/ingestpartitions

To redirect the output to a JSON file, run the script like this:

shell
$ script>$YOUR_FILE_NAME.json

You can then use this as the payload in further requests when updating the information.

Show:
shell
curl -v -X GET $YOUR_LOGSCALE_URL/api/v1/clusterconfig/ingestpartitions \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json"

Update digest partition settings

Description Manage the digest partitions to control manually where each partition is.
MethodPOST /api/v1/clusterconfig/ingestpartitions
Request Data 
Authentication Requiredyes
Return Codes
200 Request complete
400 Bad authentication
500 Request failed
http
POST /api/v1/clusterconfig/ingestpartitions
Show:
shell
curl -v -X POST $YOUR_LOGSCALE_URL/api/v1/clusterconfig/ingestpartitions \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d '@$YOUR_FILE_NAME.json'

Update digest partition settings using defaults

Invoke setdefaults to distribute the current number of partitions evenly among the known nodes in the cluster

Description Control partition distribution to nodes in the cluster.
MethodPOST /api/v1/clusterconfig/ingestpartitions/setdefaults
Request Data 
Authentication Requiredyes
Return Codes
200 Request complete
400 Bad authentication
500 Request failed
http
POST /api/v1/clusterconfig/ingestpartitions/setdefaults
Show:
shell
curl -v -X POST $YOUR_LOGSCALE_URL/api/v1/clusterconfig/ingestpartitions/setdefaults \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d '@$YOUR_FILE_NAME.json'

Manage digest partition settings from node

Invoke distribute-evenly-from-host to reassign partitions currently assigned to $NODE_ID to the other nodes in the cluster.

Description Move partitions between nodes.  
MethodPOST /api/v1/clusterconfig/ingestpartitions/distribute-evenly-from-host/id 
Request Data  
Authentication Requiredyes 
Path ArgumentsDescriptionData typeRequired?
id ID of the node configuration stringrequired
Return Codes 
200 Request complete  
400 Bad authentication  
500 Request failed  
http
POST /api/v1/clusterconfig/ingestpartitions/distribute-evenly-from-host/$NODE_ID
Show:
shell
curl -v -X POST $YOUR_LOGSCALE_URL/api/v1/clusterconfig/ingestpartitions/distribute-evenly-from-host/$NODE_ID \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d '@$YOUR_FILE_NAME.json'