Skip to content

Commit

Permalink
Set event.module and event.dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gr committed Jun 29, 2021
1 parent 8e46c2f commit 3c46041
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/netflow/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
- description: make GA
type: enhancement
link: https://github.com/elastic/integrations/pull/1218
- description: Set "event.module" and "event.dataset"
type: enhancement
link: https://github.com/elastic/integrations/pull/1218
- version: "0.4.1"
changes:
- description: Use `wildcard` field type for the relevant ECS fields.
Expand Down
8 changes: 8 additions & 0 deletions packages/netflow/data_stream/log/fields/base-fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: event.module
type: constant_keyword
description: Event module
value: netflow
- name: event.dataset
type: constant_keyword
description: Event dataset
value: netflow.log
- name: '@timestamp'
type: date
description: Event timestamp.
6 changes: 3 additions & 3 deletions packages/netflow/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ The `log` dataset collects netflow logs.
| event.category | Event category. This contains high-level information about the contents of the event. It is more generic than `event.action`, in the sense that typically a category contains multiple actions. Warning: In future versions of ECS, we plan to provide a list of acceptable values for this field, please use with caution. | keyword |
| event.code | Identification code for this event, if one exists. Some event sources use event codes to identify messages unambiguously, regardless of message language or wording adjustments over time. An example of this is the Windows Event ID. | keyword |
| event.created | event.created contains the date/time when the event was first read by an agent, or by your pipeline. This field is distinct from @timestamp in that @timestamp typically contain the time extracted from the original event. In most situations, these two timestamps will be slightly different. The difference can be used to calculate the delay between your source generating an event, and the time when your agent first processed it. This can be used to monitor your agent's or pipeline's ability to keep up with your event source. In case the two timestamps are identical, @timestamp should be used. | date |
| event.dataset | Name of the dataset. If an event source publishes more than one type of log or events (e.g. access log, error log), the dataset is used to specify which one the event comes from. It's recommended but not required to start the dataset name with the module name, followed by a dot, then the dataset name. | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.duration | Duration of the event in nanoseconds. If event.start and event.end are known this value should be the difference between the end and start time. | long |
| event.end | event.end contains the date when the event ended or when the activity was last observed. | date |
| event.hash | Hash (perhaps logstash fingerprint) of raw field to be able to demonstrate log integrity. | keyword |
Expand Down Expand Up @@ -205,8 +205,8 @@ The `log` dataset collects netflow logs.
| host.geo.region_name | Region name. | keyword |
| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword |
| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword |
| host.ip | Host ip addresses. | ip |
| host.mac | Host mac address. | keyword |
| host.ip | Host ip address. | ip |
| host.mac | Host mac addresses. | keyword |
| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword |
| host.os.build | OS build information. | keyword |
| host.os.codename | OS codename, if any. | keyword |
Expand Down

0 comments on commit 3c46041

Please sign in to comment.