Agent v0.1.22
2 minute read
May 2, 2022
While this agent release contains many enhancements and bug fixes, review the following noteworthy updates:
Updated Enrichment Options In the Edge Delta App, data enrichment options have been updated to address failed or failing sources.
To troubleshoot potential mapping failures, you can configure the failure_behavior parameter.
Additionally, you can use the fallback_value parameter to troubleshoot. Specifically, if mapping fails based on the value or json_path parameter, then the configured value for fallback_value will be used until the agent confirms that the mapping has failed.
enrichments:
failure_behavior: stop_enrichment
dynamic:
field_mappings:
* field_name: "service"
value: '{{".labels.service"}}'
* field_name: "source"
value: '.annotations.kubernetes.io/{{.container_name}}.logs'
json_path: "[0].source"
fallback_value: '{{".short_container_image"}}'
To learn more, see Enrich Input Data.
Updated Source Types In the Edge Delta App, streaming outputs have been updated.
Specifically, for the source_type parameter, you can now enter custom.
Previously, this parameter only supported K8s, Docker, ECS, and File.
When you enter custom, you must add field_mappings parameters to indicate the file source.
- labels: "my-kafka-events"
endpoint: "something"
topic: "topic"
group_id: "my-group"
sasl:
username: kafka_username
password: p@ssword123
mechanism: PLAIN
source_detection:
source_type: "Custom"
optional: false
field_mappings:
namespace: "kubernetes.namespace"
serviceName: "service"
roleName: "user.role"
systemType: "system"
Updated File Inputs In the Edge Delta App, the file input type has been updated.
Specifically, you can use the newly created exclude parameter to enter a glob path to exclude matched patterns.
files:
* labels: "billing,errorcheck"
path: "/billing/logfolder1/*.log"
* labels: "billing,errorcheck"
path: "/etc/systemd/system/billingservice/*.log"
exclude:
* "/etc/systemd/system/billingservice/test.log"
* "/etc/systemd/system/billingservice/dev.log"