-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Keep unparsed user agent information in user_agent.original #8537
Conversation
Change LGTM. I think it will need a Changelog entry. I have second thoughts if we should backport this to 6.x or not (not only raw to original, but the overall change). |
Why? I think it can provide useful information is case of exotic user agents. I assume when someone investigates weird events happening in his/her network, it's possible that the person who might be lurking around leaves behind "unconventional" user agents. |
bc1e9e9
to
3b450ed
Compare
Added changelog entry && rebased the branch |
CHANGELOG.asciidoc
Outdated
@@ -123,6 +123,7 @@ https://github.com/elastic/beats/compare/v6.4.0...master[Check the HEAD diff] | |||
- Add tag "multiline" to "log.flags" if event consists of multiple lines. {pull}7997[7997] | |||
- Add haproxy module. {pull}8014[8014] | |||
- Release `docker` input as GA. {pull}8328[8328] | |||
- Rename user_agent.raw to user_ageint.original to follow ECS conventions. {pull}8537[8537] |
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.
If this hasn't been released yet, what about editing the previous entry instead of adding two for the same thing?
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.
++
@kvch Few thoughts around this that recently came up:
|
|
@ruflin are you ok with merging this as is? |
@@ -85,10 +85,11 @@ | |||
type: keyword | |||
description: > | |||
The name of the operating system. | |||
- name: raw | |||
- name: original | |||
type: text |
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.
As we set index: false
it should not matter here what type is defined. In ECS it seems we put keyword
. Only reason I mention this is we should check later what shows up in the docs for non indexed fields.
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.
Got it. Thanks for the info.
@kvch LGTM. Did an additional commit to resolve a CHANGELOG conflict. |
Failing tests are unrelated. |
user_agent.raw
has been renamed touser_agent.original
. As this field is not yet released I am renaming it to follow conventions.