Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event.zone and event.environment fields #2306

Open
mbudge opened this issue Dec 15, 2023 · 3 comments
Open

Add event.zone and event.environment fields #2306

mbudge opened this issue Dec 15, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@mbudge
Copy link
Contributor

mbudge commented Dec 15, 2023

We have beats/elastic-agent collecting log data from many different regional offices, cloud environment's and third-party services.

We do zone tagging to make it easier for security analysts/IT select the metrics/logs in a specific zone. During triage of security alerts this also helps analysts know which IT team is responsible for the host/service which caused the security alert.

zone: the network zone the event was collected from
environment: the environment within the above network zone

zone can be a

country code like uk, us, ca, ky
cloud name like gcp, azure, oci or aws
for third-party services the zone is api or external

environment can be

prod
production
dev
development
non-prod
test
uat

Would the following fields be a good additions to ecs?

event.zone
event.environment

Examples of event.zone

event.zone:ca
event.zone:us
event.zone:uk
event.zone:gb
event.zone:ir
event.zone:sa
event.zone:aws
event.zone:gcp
event.zone:oci
event.zone:azure
event.zone:api
event.zone:external

examples of event.envrionment

event.environment:prod
event.environment:non-prod
event.environment:dev
event.environment:test
event.environment:uat

These fields would be set in the Fleet Policy settings.

@IanLee1521
Copy link

I personally like this idea, and came here looking for this same concept. Not entirely sure if event is the right top level, or if maybe something like network.zone might be better.

It might also be good to have say source.zone and destination.zone available for the zones involved in a network connection.

@mbudge
Copy link
Contributor Author

mbudge commented Jul 9, 2024

Ah yes, ecs network is for both host and network events so network.zone and network.environment might be better.

@mbudge
Copy link
Contributor Author

mbudge commented Jul 10, 2024

Another contender is

network.environment
network.zone
network.geo.* so we add network.geo.country_name and network.geo.city_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants