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

[Filebeat] Replace Suricata/Eve fields with aliases to ECS fields #10377

Merged
merged 10 commits into from
Jan 29, 2019
115 changes: 115 additions & 0 deletions dev-tools/ecs-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,121 @@
alias: true
beat: filebeat

- from: suricata.eve.alert.action
to: event.outcome
alias: true
beat: filebeat

- from: suricata.eve.alert.severity
to: event.severity
alias: true
beat: filebeat

- from: suricata.eve.app_proto
to: network.protocol
alias: true
beat: filebeat

- from: suricata.eve.dest_ip
to: destination.ip
alias: true
beat: filebeat

- from: suricata.eve.dest_port
to: destination.port
alias: true
beat: filebeat

- from: suricata.eve.event_type
to: event.type
alias: true
beat: filebeat

- from: suricata.eve.fileinfo.filename
to: file.path
alias: true
beat: filebeat

- from: suricata.eve.fileinfo.size
to: file.size
alias: true
beat: filebeat

- from: suricata.eve.flow.start
to: event.start
alias: true
beat: filebeat

- from: suricata.eve.flow.bytes_toclient
to: destination.bytes
alias: true
beat: filebeat

- from: suricata.eve.flow.bytes_toserver
to: source.bytes
alias: true
beat: filebeat

- from: suricata.eve.flow.pkts_toclient
to: destination.packets
alias: true
beat: filebeat

- from: suricata.eve.flow.pkts_toserver
to: source.packets
alias: true
beat: filebeat

- from: suricata.eve.http.hostname
to: url.domain
alias: true
beat: filebeat

- from: suricata.eve.http.http_method
to: http.request.method
alias: true
beat: filebeat

- from: suricata.eve.http.http_refer
to: http.request.referrer
alias: true
beat: filebeat

- from: suricata.eve.http.http_user_agent
to: user_agent.original
alias: true
beat: filebeat

- from: suricata.eve.http.length
to: http.response.body.bytes
alias: true
beat: filebeat

- from: suricata.eve.http.status
to: http.response.status_code
alias: true
beat: filebeat

- from: suricata.eve.proto
to: network.transport
alias: true
beat: filebeat

- from: suricata.eve.src_ip
to: source.ip
alias: true
beat: filebeat

- from: suricata.eve.src_port
to: source.port
alias: true
beat: filebeat

- from: suricata.eve.timestamp
to: '@timestamp'
alias: true
beat: filebeat

## System module

- from: system.syslog.hostname
Expand Down
92 changes: 69 additions & 23 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10706,7 +10706,9 @@ Fields exported by the EVE JSON logs
*`suricata.eve.event_type`*::
+
--
type: keyword
type: alias

alias to: event.type

--

Expand Down Expand Up @@ -10792,7 +10794,9 @@ type: keyword
*`suricata.eve.fileinfo.filename`*::
+
--
type: keyword
type: alias

alias to: file.path

--

Expand Down Expand Up @@ -10841,7 +10845,9 @@ type: keyword
*`suricata.eve.fileinfo.size`*::
+
--
type: long
type: alias

alias to: file.size

--

Expand All @@ -10855,21 +10861,27 @@ type: long
*`suricata.eve.dest_port`*::
+
--
type: long
type: alias

alias to: destination.port

--

*`suricata.eve.src_port`*::
+
--
type: long
type: alias

alias to: source.port

--

*`suricata.eve.proto`*::
+
--
type: keyword
type: alias

alias to: network.transport

--

Expand All @@ -10883,7 +10895,9 @@ type: long
*`suricata.eve.src_ip`*::
+
--
type: ip
type: alias

alias to: source.ip

--

Expand Down Expand Up @@ -10962,7 +10976,9 @@ type: keyword
*`suricata.eve.dest_ip`*::
+
--
type: ip
type: alias

alias to: destination.ip

--

Expand All @@ -10977,7 +10993,9 @@ type: long
*`suricata.eve.http.status`*::
+
--
type: long
type: alias

alias to: http.response.status_code

--

Expand All @@ -10991,7 +11009,9 @@ type: keyword
*`suricata.eve.http.http_user_agent`*::
+
--
type: keyword
type: alias

alias to: user_agent.original

--

Expand All @@ -11005,7 +11025,9 @@ type: keyword
*`suricata.eve.http.http_refer`*::
+
--
type: keyword
type: alias

alias to: http.request.referrer

--

Expand All @@ -11019,21 +11041,27 @@ type: keyword
*`suricata.eve.http.hostname`*::
+
--
type: keyword
type: alias

alias to: url.domain

--

*`suricata.eve.http.length`*::
+
--
type: long
type: alias

alias to: http.response.body.bytes

--

*`suricata.eve.http.http_method`*::
+
--
type: keyword
type: alias

alias to: http.request.method

--

Expand All @@ -11047,7 +11075,9 @@ type: keyword
*`suricata.eve.timestamp`*::
+
--
type: date
type: alias

alias to: @timestamp

--

Expand All @@ -11069,7 +11099,9 @@ type: keyword
*`suricata.eve.alert.severity`*::
+
--
type: long
type: alias

alias to: event.severity

--

Expand Down Expand Up @@ -11097,7 +11129,9 @@ type: keyword
*`suricata.eve.alert.action`*::
+
--
type: keyword
type: alias

alias to: event.outcome

--

Expand Down Expand Up @@ -12045,21 +12079,27 @@ type: keyword
*`suricata.eve.flow.bytes_toclient`*::
+
--
type: long
type: alias

alias to: destination.bytes

--

*`suricata.eve.flow.start`*::
+
--
type: date
type: alias

alias to: event.start

--

*`suricata.eve.flow.pkts_toclient`*::
+
--
type: long
type: alias

alias to: destination.packets

--

Expand All @@ -12080,7 +12120,9 @@ type: keyword
*`suricata.eve.flow.bytes_toserver`*::
+
--
type: long
type: alias

alias to: source.bytes

--

Expand All @@ -12094,7 +12136,9 @@ type: keyword
*`suricata.eve.flow.pkts_toserver`*::
+
--
type: long
type: alias

alias to: source.packets

--

Expand All @@ -12115,7 +12159,9 @@ type: boolean
*`suricata.eve.app_proto`*::
+
--
type: keyword
type: alias

alias to: network.protocol

--

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@
"columns": [
"host.name",
"suricata.eve.flow_id",
"suricata.eve.src_ip",
"suricata.eve.src_port",
"suricata.eve.dest_ip",
"suricata.eve.dest_port",
"source.ip",
"source.port",
"destination.ip",
"destination.port",
"source.geo.country_iso_code",
"destination.geo.country_iso_code"
],
Expand Down
Loading