-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Introduce network.community_id #208
Conversation
I would like to get a review on this from @MikePaquette or @robgil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am +1 for adding this field.
Using .
instead of _
in this case blips my "too-many-dots" radar.
- I prefer using dots only when the object is a physical or logical entity that can be defined in ECS and there will be a significant set of fields under that object. I don't expect we'll define
community
- So far, in ECS, we have lowered that bar, and use a dot whenever two or more fields share a common word in their names.
- This would be a new use, where we use a dot because we think we might need to add another field that shares a common word in the future.
If we have a good idea what the additional field might be, let's add it now, otherwise, I'd suggest that we use the _
As the spec mentions, the community ID starts with the community ID version and a colon (e.g. When version |
@webmat OK, since we don't use the colon representation in ECS, maybe we should just define two fields now? Either:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as is.
I don't see much of a value in adding a .version
since it's encoded into the ID value. If/when there is a version 2 I doubt you'd be able to meaningfully compare or aggregate v1 and v2 ID values even if the version were not embedded in the ID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice addition to packetbeat
I'm also of the opinion that we shouldn't add @MikePaquette Can we go with only |
Ping @dcode |
I agree with @andrewkroh, the version is encoded in the value itself. There won't be any concern about comparing v1 vs v2 ID values. The only reason you'd need to parse that out is if you wanted to ask "What are all records with v1 community IDs?" I also agree with @MikePaquette with the "too many dots radar". I'm trying to imagine other useful contexts of |
Yeah I'm ok with going to And to compare 1: vs 2:, people can always do a prefix search on the hash and compare both anyways. I'll update the PR |
I'm introducing this with a dot before the ID, rather than an underscore. The
standard is defined such as there can be new versions in the future, and when
that happens, we may want to introduce additional fields under
community.
,to help make sense of this.
Let me know if that sounds reasonable.
Community ID spec