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

Convert apache2.access to ECS - Take 2 #9245

Merged
merged 14 commits into from
Nov 29, 2018
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ https://github.com/elastic/beats/compare/v6.5.0...v7.0.0-alpha1[View commits]
- Rename many `haproxy.*` fields to map to ECS. {pull}9117[9117]
- Rename many `nginx.access.*` fields to map to ECS. {pull}9081[9081]
- Rename many `system.auth.*` fields to map to ECS. {pull}9138[9138]
- Rename many `apache2.access.*` fields to map to ECS. {pull}9245[9245]
webmat marked this conversation as resolved.
Show resolved Hide resolved

*Metricbeat*

Expand Down
14 changes: 2 additions & 12 deletions auditbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4387,10 +4387,10 @@ URL fields provide a complete URL, with scheme, host, and path. The URL object c



*`url.href`*::
*`url.original`*::
webmat marked this conversation as resolved.
Show resolved Hide resolved
+
--
type: text
type: keyword

example: https://elastic.co:443/search?q=elasticsearch#top

Expand All @@ -4399,16 +4399,6 @@ Full url. The field is stored as keyword.
`href` is an analyzed field so the parsed information can be accessed through `href.analyzed` in queries.


*`url.href.raw`*::
+
--
type: keyword

The full URL. This is a non-analyzed field that is useful for aggregations.


--

--

*`url.scheme`*::
Expand Down
2 changes: 1 addition & 1 deletion auditbeat/include/fields.go

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions dev-tools/ecs-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
alias: true
copy_to: false

# Filebeat modules

## Suricata module

- from: source_ecs.ip
to: source.ip
alias: true
Expand Down Expand Up @@ -155,6 +159,59 @@
alias: true
copy_to: false

## Apache

- from: apache2.access.user_name
to: user.name
alias: true
copy_to: false

- from: apache2.access.method
to: http.request.method
alias: true
copy_to: false

- from: apache2.access.url
to: url.original
alias: true
copy_to: false

- from: apache2.access.http_version
to: http.version
alias: true
copy_to: false

- from: apache2.access.response_code
to: http.response.status_code
alias: true
copy_to: false

- from: apache2.access.referrer
to: http.request.referrer
alias: true
copy_to: false

- from: apache2.access.agent
to: user_agent.original
alias: true
copy_to: false

- from: read_timestamp
to: event.created
alias: false
copy_to: false

# These expand all fields under geoip and user_agent
- from: apache2.access.geoip.*
to: source.geo.*
alias: false
copy_to: false

- from: apache2.access.user_agent.*
to: user_agent.*
alias: false
copy_to: false

# From Auditbeat's auditd module.
- from: source.hostname
to: source.domain
Expand Down
7 changes: 0 additions & 7 deletions filebeat/_meta/fields.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,6 @@
Referrer for this HTTP request.
example: https://blog.example.com/

# Temporary fixes until ECS is reimported
- name: url.original
type: keyword
description: >
Full original url. The field is stored as keyword.
example: https://blog.example.com/

# Temporary fix to get 7.0 dashboards working
- name: fileset.name
type: alias
Expand Down
Loading