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 Filebeat system.auth to ECS #9138

Merged
merged 14 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ https://github.com/elastic/beats/compare/v6.5.0...v7.0.0-alpha1[View commits]
- IIS module's user agent string is no longer encoded (`+` replaced with spaces). {pull}9084[9084]
- 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]

*Metricbeat*

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

- from: system.auth.hostname
to: host.hostname
alias: true
copy_to: false

- from: system.auth.pid
to: process.pid
alias: true
copy_to: false

- from: system.auth.groupadd.gid
to: group.id
alias: true
copy_to: false

- from: system.auth.useradd.uid
to: user.id
alias: true
copy_to: false

- from: system.auth.useradd.user
to: user.name
alias: true
copy_to: false

- from: system.auth.ssh.event
to: event.action
alias: true
copy_to: false

- from: system.auth.program
to: process.name
alias: true
copy_to: false

- from: system.auth.ssh.ip
to: source.ip
alias: true
copy_to: false

- from: system.auth.ssh.port
to: source.port
alias: true
copy_to: false

- from: system.auth.ssh.geoip.*
to: source.geo.*
alias: true
copy_to: false

# From Auditbeat's auditd module.
- from: source.hostname
to: source.domain
Expand Down
178 changes: 73 additions & 105 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5850,6 +5850,30 @@ Module for parsing system log files.
--
type: keyword

--

*`group.id`*::
+
--
type: keyword

required: False

ID of the group.


--

*`group.name`*::
+
--
type: keyword

required: False

Name of the group.


--

[float]
Expand All @@ -5866,73 +5890,49 @@ Fields from the Linux authorization logs.



*`system.auth.timestamp`*::
*`@timestamp`*::
+
--
The timestamp as read from the auth message.

type: alias

--

*`system.auth.hostname`*::
*`host.hostname`*::
+
--
The hostname as read from the auth message.

type: alias

--

*`system.auth.program`*::
*`process.name`*::
+
--
The process name as read from the auth message.

type: alias

--

*`system.auth.pid`*::
*`process.pid`*::
+
--
type: long

The PID of the process that sent the auth message.

type: alias

--

*`system.auth.message`*::
*`message`*::
+
--
type: text

The message in the log line.

type: alias

--

*`system.auth.user`*::
*`user.name`*::
+
--
The Unix user that this event refers to.


--

[float]
== ssh fields

Fields specific to SSH login events.


type: alias

*`system.auth.ssh.event`*::
+
--
The SSH login event. Can be one of "Accepted", "Failed", or "Invalid". "Accepted" means a successful login. "Invalid" means that the user is not configured on the system. "Failed" means that the SSH login attempt has failed.


--

*`system.auth.ssh.method`*::
+
--
Expand All @@ -5941,12 +5941,10 @@ The SSH authentication method. Can be one of "password" or "publickey".

--

*`system.auth.ssh.ip`*::
*`system.auth.ssh.signature`*::
+
--
type: ip

The client IP from where the login attempt was made.
The signature of the client public key.


--
Expand All @@ -5961,88 +5959,67 @@ The client IP from SSH connections that are open and immediately dropped.

--

*`system.auth.ssh.port`*::
*`event.action`*::
+
--
type: long

The client port from where the login attempt was made.

type: alias

--

*`system.auth.ssh.signature`*::
*`source.ip`*::
+
--
The signature of the client public key.

type: alias

--

[float]
== geoip fields

Contains GeoIP information gathered based on the `system.auth.ip` field. Only present if the GeoIP Elasticsearch plugin is available and used.
*`source.port`*::
+
--
type: alias

--


*`system.auth.ssh.geoip.continent_name`*::
*`source.geo.continent_name`*::
+
--
type: keyword

The name of the continent.

type: alias

--

*`system.auth.ssh.geoip.city_name`*::
*`source.geo.country_iso_code`*::
+
--
type: keyword

The name of the city.

type: alias

--

*`system.auth.ssh.geoip.region_name`*::
*`source.geo.location`*::
+
--
type: keyword

The name of the region.

type: alias

--

*`system.auth.ssh.geoip.country_iso_code`*::
*`source.geo.region_name`*::
+
--
type: keyword

Country ISO code.

type: alias

--

*`system.auth.ssh.geoip.location`*::
*`source.geo.city_name`*::
+
--
type: geo_point

The longitude and latitude.

type: alias

--

*`system.auth.ssh.geoip.region_iso_code`*::
*`source.geo.region_iso_code`*::
+
--
type: keyword

Region ISO code.

type: alias

--

Expand Down Expand Up @@ -6104,43 +6081,38 @@ Fields specific to events created by the `useradd` command.



*`system.auth.useradd.name`*::
*`system.auth.useradd.home`*::
+
--
The user name being added.

The home folder for the new user.

--

*`system.auth.useradd.uid`*::
*`system.auth.useradd.shell`*::
+
--
type: long

The user ID.
The default shell for the new user.

--

*`system.auth.useradd.gid`*::
*`user.name`*::
+
--
type: long

The group ID.
type: alias

--

*`system.auth.useradd.home`*::
*`user.id`*::
+
--
The home folder for the new user.
type: alias

--

*`system.auth.useradd.shell`*::
*`group.id`*::
+
--
The default shell for the new user.
type: alias

--

Expand All @@ -6151,21 +6123,17 @@ Fields specific to events created by the `groupadd` command.



*`system.auth.groupadd.name`*::
*`group.name`*::
+
--
The name of the new group.

type: alias

--

*`system.auth.groupadd.gid`*::
*`group.id`*::
+
--
type: long

The ID of the new group.

type: alias

--

Expand Down
2 changes: 1 addition & 1 deletion filebeat/include/fields.go

Large diffs are not rendered by default.

Loading