Open amitlin opened 8 months ago
Sorry for the delay :/
Setup job is applying the terraform changes for collector every time, so if you change the collector configuration by hand it will be overwritten by setup job. You may use additional configuration in helm chart to set the processing rules
It can be done the same way we are setting default_date_properties
sumologic:
collector:
sources:
logs:
default:
## Properties can be used to extend default settings, such as processing rules, fields etc
properties:
default_date_formats:
## Ensures that timestamp key has precedence over timestamp auto discovery
- format: epoch
locator: '\"timestamp\":(\\d+)'
Here is documentation for terraform for filters:
https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs#filters
Please reply if you need more help with the issue
Describe the bug A clear and concise description of what the bug is. The setup job that creates the collectors removes all processing filter rules when it is ran.
Logs Logs which can be helpful in investigating the issue.
Command used to install/upgrade Collection Direct command which you used to install/upgrade collection. The collector is managed by Argocd, the action used was a simple argocd sync. The equivalent command will be a simple helm upgrade
Configuration Configuration used for Collection e.g. user-values.yaml for helm. mostly defaults, just the collector name & cluster set.
To Reproduce Steps to reproduce the behavior. Create an Argo application that manages a sumo collector chart with the following values:
Add any processing filter rule. Sync the argo application.
Expected behavior A clear and concise description of what you expected to happen. Either the ability to set these rules as code through configuration, or the terraform resource should ignore changes to the processing rules.
Environment (please complete the following information):
helm ls -n sumologic
): sumologic-4.5.1kubectl version
): Server Version: v1.26.12-eks-5e0fddeAnything else do we need to know Add any other context about the problem here, e.g. issue happens only occasionally.