Update Logs Pipeline Configuration
Update the logs pipeline configuration.
Endpoint
Authentication
Headers
Authorization: Bearer <YOUR_API_KEY>
Content-Type: application/jsonExamples
Basic Request
curl -L \
--request POST \
--url 'https://api.groundcover.com/api/pipelines/logs/config' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"ottlRules": [
{
"ruleName": "test_log_pattern",
"conditions": [
"workload == \"test-app\" or container_name == \"test-container\""
],
"statements": [
"set(cache, ExtractGrokPatterns(body, \"^%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:level} %{GREEDYDATA:message}\"))",
"merge_maps(attributes, cache, \"insert\")",
"set(attributes[\"parsed\"], true)"
],
"statementsErrorMode": "skip",
"conditionLogicOperator": "or"
},
{
"ruleName": "json_parsing_test",
"conditions": [
"format == \"JSON\""
],
"statements": [
"set(parsed_json, ParseJSON(body))",
"merge_maps(attributes, parsed_json, \"insert\")"
],
"statementsErrorMode": "skip",
"conditionLogicOperator": "and"
}
]
}'Response Example
Backup Current Configuration First
Verify Configuration Update
Related Documentation
Last updated
