From 580c6129822b315c7e5cc39a3df9f0622215350d Mon Sep 17 00:00:00 2001 From: Alon Girmonsky <1990761+alongir@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:05:35 -0700 Subject: [PATCH] added timestamp>now() as a global filter --- config/configStructs/tapConfig.go | 2 +- helm-chart/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index 8357f50f1..01c6dba9b 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -243,7 +243,7 @@ type TapConfig struct { RecordingDisabled bool `yaml:"recordingDisabled" json:"recordingDisabled" default:"false"` StopTrafficCapturingDisabled bool `yaml:"stopTrafficCapturingDisabled" json:"stopTrafficCapturingDisabled" default:"false"` Capabilities CapabilitiesConfig `yaml:"capabilities" json:"capabilities"` - GlobalFilter string `yaml:"globalFilter" json:"globalFilter"` + GlobalFilter string `yaml:"globalFilter" json:"globalFilter" default:"timestamp>now()"` EnabledDissectors []string `yaml:"enabledDissectors" json:"enabledDissectors"` Metrics MetricsConfig `yaml:"metrics" json:"metrics"` Pprof PprofConfig `yaml:"pprof" json:"pprof"` diff --git a/helm-chart/README.md b/helm-chart/README.md index 0892faf38..07a05d675 100644 --- a/helm-chart/README.md +++ b/helm-chart/README.md @@ -176,7 +176,7 @@ Please refer to [metrics](./metrics.md) documentation for details. | `tap.sentry.enabled` | Enable sending of error logs to Sentry | `false` | | `tap.sentry.environment` | Sentry environment to label error logs with | `production` | | `tap.defaultFilter` | Sets the default dashboard KFL filter (e.g. `http`). By default, this value is set to filter out noisy protocols such as DNS, UDP, ICMP and TCP. The user can easily change this in the Dashboard. You can also change this value to change this behavior. | `"!dns and !tcp and !udp and !icmp"` | -| `tap.globalFilter` | Prepends to any KFL filter and can be used to limit what is visible in the dashboard. For example, `redact("request.headers.Authorization")` will redact the appropriate field. Another example `!dns` will not show any DNS traffic. | `""` | +| `tap.globalFilter` | Prepends to any KFL filter and can be used to limit what is visible in the dashboard. For example, `redact("request.headers.Authorization")` will redact the appropriate field. Another example `!dns` will not show any DNS traffic. | `"timestamp>now()"` | | `tap.metrics.port` | Pod port used to expose Prometheus metrics | `49100` | | `tap.enabledDissectors` | This is an array of strings representing the list of supported protocols. Remove or comment out redundant protocols (e.g., dns).| The default list includes: amqp, dns , http, icmp, kafka, redis,sctp, syscall, tcp, ws. | | `logs.file` | Logs dump path | `""` |