-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Containerlogv2 Metadata and annotations based filtering (#1148)
* add fluent-bit kubernetes filter (#1115) * add fluent-bit kubernetes filter --------- Co-authored-by: Amol Agrawal <[email protected]> * add metadata feilds including labels, annotations, uid and image (#1120) * add metadata feilds including labels, annotations, uid and image * set the include_fields if customer set it otherwise go with default if enabled * fix minor bugs * change placeholder * add exclude specific kubernetes config * update tls verify for linux * make log filtering opt in explicit (#1140) Co-authored-by: Amol Agrawal <[email protected]> * Longw/metadata containerlogv2 kubernetes (#1139) * add metadata feilds including labels, annotations, uid and image * rename to podUid and add nil check * set the include_fields if customer set it otherwise go with default if enabled * add workload to testing clusters * containerlogv2 metadata backend change with feature flag on * adjust the marshal and log the output * address comments add check and scenario for empty list * remove ADX support * go fmt for better format * fix space in tomlparser.rb * update trivy ignore * fix Kube_Tag_Prefix for windows * update trivy * add ttl for metadata cache * update containerlogv2 test workloads * change typo and update tests * Longw/metadata containerlogv2 address feedback (#1166) * add argument for sendMetric * update SendMetric * update SendMetric * Longw/metadata containerlogv2 address feedback2 (#1186) * extend to support more configs on metadata * add warning message if feilds not match * add plugin for geneva path * add kubernetesMetadataCollection for geneva path * Longw/metadata containerlogv2 address feedback2 (#1188) * remove send metric * update trivy * Longw/metadata containerlogv2 address feedback3 (#1195) * update doc for containerlogv2 linux * add kube_meta_cache_ttl to agent settings * update logic to adjust colonLocation as the end of the list if it is not found * address comments and feedback * update conf file for geneva * adjust geneva and add new metrics * address feedback for geneva path * add telemetry in go * address comments for geneva conf filter config --------- Co-authored-by: Amol Agrawal <[email protected]> Co-authored-by: Amol Agrawal <[email protected]>
- Loading branch information
1 parent
83946e7
commit 33b1b6a
Showing
24 changed files
with
552 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
build/linux/installer/conf/fluent-bit-geneva-logs_infra_filter.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#${KubernetesFilterEnabled}[FILTER] | ||
#${KubernetesFilterEnabled} Name kubernetes | ||
#${KubernetesFilterEnabled} Alias geneva_kubernetes_filter | ||
#${KubernetesFilterEnabled} Match geneva.container.log.infra.* | ||
#${KubernetesFilterEnabled} Merge_Log Off | ||
#${KubernetesFilterEnabled} Buffer_Size 0 | ||
#${KubernetesFilterEnabled} Use_Kubelet true | ||
#${KubernetesFilterEnabled} Kubelet_Port 10250 | ||
#${KubernetesFilterEnabled} Kubelet_Host ${NODE_IP} | ||
#${KubernetesFilterEnabled} tls.verify Off | ||
#${KubernetesFilterEnabled}#${AnnotationBasedLogFilteringEnabled} K8S-Logging.Exclude On | ||
#${KubernetesFilterEnabled} Kube_Meta_Cache_TTL ${AZMON_KUBERNETES_METADATA_CACHE_TTL_SECONDS} | ||
#${KubernetesFilterEnabled} Kube_Tag_Prefix geneva.container.log.infra.var.log.containers. |
13 changes: 13 additions & 0 deletions
13
build/linux/installer/conf/fluent-bit-geneva-logs_tenant_filter.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#${KubernetesFilterEnabled}[FILTER] | ||
#${KubernetesFilterEnabled} Name kubernetes | ||
#${KubernetesFilterEnabled} Alias geneva_kubernetes_filter | ||
#${KubernetesFilterEnabled} Match geneva.container.log.tenant.* | ||
#${KubernetesFilterEnabled} Merge_Log Off | ||
#${KubernetesFilterEnabled} Buffer_Size 0 | ||
#${KubernetesFilterEnabled} Use_Kubelet true | ||
#${KubernetesFilterEnabled} Kubelet_Port 10250 | ||
#${KubernetesFilterEnabled} Kubelet_Host ${NODE_IP} | ||
#${KubernetesFilterEnabled} tls.verify Off | ||
#${KubernetesFilterEnabled}#${AnnotationBasedLogFilteringEnabled} K8S-Logging.Exclude On | ||
#${KubernetesFilterEnabled} Kube_Meta_Cache_TTL ${AZMON_KUBERNETES_METADATA_CACHE_TTL_SECONDS} | ||
#${KubernetesFilterEnabled} Kube_Tag_Prefix geneva.container.log.tenant.var.log.containers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
build/windows/installer/conf/fluent-bit-geneva-logs_infra_filter.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#${KubernetesFilterEnabled}[FILTER] | ||
#${KubernetesFilterEnabled} Name kubernetes | ||
#${KubernetesFilterEnabled} Alias geneva_win_kubernetes_filter | ||
#${KubernetesFilterEnabled} Match geneva.container.log.infra.* | ||
#${KubernetesFilterEnabled} Merge_Log Off | ||
#${KubernetesFilterEnabled} Buffer_Size 0 | ||
#${KubernetesFilterEnabled} Use_Kubelet true | ||
#${KubernetesFilterEnabled} Kubelet_Port 10250 | ||
#${KubernetesFilterEnabled} Kubelet_Host ${NODE_IP} | ||
#${KubernetesFilterEnabled} tls.verify Off | ||
#${KubernetesFilterEnabled}#${AnnotationBasedLogFilteringEnabled} K8S-Logging.Exclude On | ||
#${KubernetesFilterEnabled} Kube_Meta_Cache_TTL ${AZMON_KUBERNETES_METADATA_CACHE_TTL_SECONDS} | ||
#${KubernetesFilterEnabled} Kube_Tag_Prefix geneva.container.log.infra.C.var.log.containers. |
13 changes: 13 additions & 0 deletions
13
build/windows/installer/conf/fluent-bit-geneva-logs_tenant_filter.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#${KubernetesFilterEnabled}[FILTER] | ||
#${KubernetesFilterEnabled} Name kubernetes | ||
#${KubernetesFilterEnabled} Alias geneva_win_kubernetes_filter | ||
#${KubernetesFilterEnabled} Match geneva.container.log.tenant.* | ||
#${KubernetesFilterEnabled} Merge_Log Off | ||
#${KubernetesFilterEnabled} Buffer_Size 0 | ||
#${KubernetesFilterEnabled} Use_Kubelet true | ||
#${KubernetesFilterEnabled} Kubelet_Port 10250 | ||
#${KubernetesFilterEnabled} Kubelet_Host ${NODE_IP} | ||
#${KubernetesFilterEnabled} tls.verify Off | ||
#${KubernetesFilterEnabled}#${AnnotationBasedLogFilteringEnabled} K8S-Logging.Exclude On | ||
#${KubernetesFilterEnabled} Kube_Meta_Cache_TTL ${AZMON_KUBERNETES_METADATA_CACHE_TTL_SECONDS} | ||
#${KubernetesFilterEnabled} Kube_Tag_Prefix geneva.container.log.tenant.C.var.log.containers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.