Logging hostname
might break logging providers hostname parsers and features
#2530
Labels
hostname
might break logging providers hostname parsers and features
#2530
In recent versions,
hostname
was included infalco
logs. In logging providers such as Datadog,hostname
is parsed by default and in general it maps to a k8s worker or EC2 instance. This enables log enrichment by correlating pod x k8s worker details based onhostname
.It seems this field is using the
HOSTNAME
available in the environment variable, which in general is the pod name. This breaks up correlations done on logging providers that rely on the hostname.How to reproduce it
Running the latest version of
falco
, observe the JSON output logs. It will have something likeExpected behaviour
There should be an option to not log the
hostname
, which might conflict with logging providers, or to be able to pass which value should be used (eg:spec.nodeName
).Environment
Cloud provider or hardware configuration: AWS
OS:
Kernel: 5.4.228-131.415.amzn2.x86_64
Installation method: Falco 3.1.4 helm chart
The text was updated successfully, but these errors were encountered: