Whether you are just starting your observability journey or already are an expert, our courses will help advance your knowledge and practical skills.
Expert insight, best practices and information on everything related to Observability issues, trends and solutions.
Explore our guides on a broad range of observability related topics.
This tutorial demonstrates how to set up Custom Enrichment using the Coralogix API.
Select the API endpoint associated with your Coralogix domain.
Use the Alerts, Rules, and Tags API Key as the Bearer token. Navigate to Data Flow > API Keys to access an existing key or generate a new one.
The following Custom Enrichments API calls are supported:
Create a new Custom Enrichment. Copy the curl commands below and customize them for your environment before sending them to the API. Please remember to use the correct endpoint for your deployment.
Request:
curl --location --request POST 'https://webapi.coralogix.com/api/v1/external/custom-enrichments' \
--header 'Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
--form 'name="\"YOUR_ENRICHMENT_NAME\""' \
--form 'description="\"YOUR_ENRICHMENT_DESCRIPTION\""' \
--form 'file=@"PATH_TO_YOUR_ENRICHMENT.CSV_FILE"'
Note:
The PATH_TO_YOUR_ENRICHMENT.CSV_FILE as for example: “/Users/Test/CustomEnrichment.csv”.
Response:
{
"message": "accepted new enrichment request with id 14",
"customEnrichmentId": 14
}
Status Codes: 202, 406, 502.
curl --location --request PUT 'https://webapi.coralogix.com/api/v1/external/custom-enrichments/14' \
--header 'Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
--form 'name="\"YOUR_ENRICHMENT_NAME_V2\""' \
--form 'description="\"YOUR_ENRICHMENT_DESCRIPTION\""' \
--form 'file=@"PATH_TO_YOUR_ENRICHMENT.CSV_FILE"'
Notes:
Response:
{
"message": "accepted update to enrichment request with id 14",
"customEnrichmentId": 14
}
Status Codes: 202, 502.
Request:
curl --location --request DELETE 'https://webapi.coralogix.com/api/v1/external/custom-enrichments/14' \
--header 'Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \ --data-raw ''
Note:
{
"message": "deleted custom enrichment 14",
"customEnrichmentId": 14
}
Status Codes: 200, 409, 502.
Request:
curl --location --request GET 'https://webapi.coralogix.com/api/v1/external/custom-enrichments/' \
--header 'Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
[
{
"id": 13,
"name": "Enrichment Test",
"description": "First Coralogix API Custom Enrichment Test",
"version": 1
},
{
"id": 14, "name": "customer's UUID to customer name V2",
"description": "This enrichment is for mapping UUID to name",
"version": 2
}
]
Status Codes: 200, 500.
Documentation | Custom Enrichment |
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by emailing support@coralogix.com.