-
Notifications
You must be signed in to change notification settings - Fork 431
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 host.domain field #591
Conversation
@elasticmachine, run elasticsearch-ci/docs |
Hi @neu5ron As an analogy there exists the user.domain and group.domain which are populated in the same way when user or group account events are mapped. |
|
Yes now that we're fleshing out support for AD/LDAP domains (user, group, now host), perhaps this will create confusion vs DNS domain names (source, dest, client, server, url). We'll see if it becomes a problem, and we can adjust if that's the case. But for now, let's confidently move forward ;-)
Once we have the example in place, I think we can merge this. Thanks for your contribution! Finally, this is unrelated to this PR specifically, but related to your work here and on elastic/beats#14299, I'd love to get your thoughts on #589, @janniten. |
Name of the directory the group is a member of. | ||
|
||
For example, an LDAP or Active Directory domain name. | ||
example: CONTOSO |
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 expected this would look more like a domain name, actually.
I suppose it's something optional? Companies that run their domain 100% internal could name their domain CONTOSO, and if the company wanted to make this publicly accessible, it may be "contoso.net"?
Or was the .fqdn
discussion meant to be about the FQDN of the domain controller? When I read it, I understood host.fqdn
to be the fqdn of the host, which could in this case be "bob-laptop.CONTOSO"?
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.
same domain Microsoft uses in their examples
Love the approach in any case :-)
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.
Hi @webmat it is only a name (can be anything) that refers to an Active Directory Domain or Windows Domain.
It is not optional, always exists. If you do not have an AD the domain name in the event is the name of the local computer.
Users, Groups and Computers (and in general, objects within the domain) are referenced as domain_name\object-name.
In the case of bob's laptop the reference will be CONTOSO\bob-laptop or bob-laptop.CONTOSO
It is not related to domain name in the context of DNS nor with the fact that the domain permit the object will be publicly accessible.
Real domain name examples and user names
An old company I worked for (and doesn't exist anymore :) )
domain: NEXTEL_AR
My home local domain
TargetUserName Anna
TargetDomainName DESKTOP-4564S0K
Either is an Active Directory or an stand alone computer in a private network , Windows always asigns a domain name :)
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 think this is a good addition. I think the field documentation needs a small change.
schemas/host.yml
Outdated
type: keyword | ||
short: Name of the directory the group is a member of. | ||
description: > | ||
Name of the directory the group is a member of. |
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 would think this would read like:
"Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider."
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.
Fixed!
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
@andrewkroh @webmat What do you think? |
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.
Yes this is good to go, thanks for your contribution, @janniten :-)
I'm working with windows events 4741,4742 and 4743.
When mapping into ECS I realize that I need a field host.domain
I found also that host.domain is necessary when mapping certain Fortigate Logs