Skip to content

Commit

Permalink
Add the api value to event.category (#2147) (#2155)
Browse files Browse the repository at this point in the history
* Adding `api` to `event.category`

* better phrasing for description, added a few extra expected types

(cherry picked from commit 08237fe)

Co-authored-by: Christophe Alladoum <85187342+calladoum-elastic@users.noreply.github.com>
  • Loading branch information
ebeahan and calladoum-elastic committed Feb 1, 2023
1 parent 1e9708d commit bdcf857
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Thanks, you're awesome :-) -->

#### Added

* adding `api` option to `event.category` #2147

#### Improvements

#### Deprecated
Expand Down
2 changes: 1 addition & 1 deletion docs/fields/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3389,7 +3389,7 @@ Note: this field should contain an array of values.

*Important*: The field value must be one of the following:

authentication, configuration, database, driver, email, file, host, iam, intrusion_detection, malware, network, package, process, registry, session, threat, vulnerability, web
api, authentication, configuration, database, driver, email, file, host, iam, intrusion_detection, malware, network, package, process, registry, session, threat, vulnerability, web

To learn more about when to use which value, visit the page
<<ecs-allowed-values-event-category,allowed values for event.category>>
Expand Down
13 changes: 13 additions & 0 deletions docs/fields/field-values.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ This field is an array. This will allow proper categorization of some events tha

*Allowed Values*

* <<ecs-event-category-api,api>>
* <<ecs-event-category-authentication,authentication>>
* <<ecs-event-category-configuration,configuration>>
* <<ecs-event-category-database,database>>
Expand All @@ -151,6 +152,18 @@ This field is an array. This will allow proper categorization of some events tha
* <<ecs-event-category-vulnerability,vulnerability>>
* <<ecs-event-category-web,web>>

[float]
[[ecs-event-category-api]]
==== api

Events in this category annotate API calls that occured on a system. Typical sources for those events could be from the Operating System level through the native libraries (for example Windows Win32, Linux libc, etc.), or managed sources of events (such as ETW, syslog), but can also include network protocols (such as SOAP, RPC, Websocket, REST, etc.)


*Expected event types for category api:*

access, admin, allowed, change, creation, deletion, denied, end, info, start, user


[float]
[[ecs-event-category-authentication]]
==== authentication
Expand Down
18 changes: 18 additions & 0 deletions experimental/generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2944,6 +2944,24 @@ event.agent_id_status:
type: keyword
event.category:
allowed_values:
- description: Events in this category annotate API calls that occured on a system.
Typical sources for those events could be from the Operating System level through
the native libraries (for example Windows Win32, Linux libc, etc.), or managed
sources of events (such as ETW, syslog), but can also include network protocols
(such as SOAP, RPC, Websocket, REST, etc.)
expected_event_types:
- access
- admin
- allowed
- change
- creation
- deletion
- denied
- end
- info
- start
- user
name: api
- description: Events in this category are related to the challenge and response
process in which credentials are supplied and verified to allow the creation
of a session. Common sources for these logs are Windows event logs and ssh logs.
Expand Down
18 changes: 18 additions & 0 deletions experimental/generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3936,6 +3936,24 @@ event:
type: keyword
event.category:
allowed_values:
- description: Events in this category annotate API calls that occured on a
system. Typical sources for those events could be from the Operating System
level through the native libraries (for example Windows Win32, Linux libc,
etc.), or managed sources of events (such as ETW, syslog), but can also
include network protocols (such as SOAP, RPC, Websocket, REST, etc.)
expected_event_types:
- access
- admin
- allowed
- change
- creation
- deletion
- denied
- end
- info
- start
- user
name: api
- description: Events in this category are related to the challenge and response
process in which credentials are supplied and verified to allow the creation
of a session. Common sources for these logs are Windows event logs and ssh
Expand Down
18 changes: 18 additions & 0 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2875,6 +2875,24 @@ event.agent_id_status:
type: keyword
event.category:
allowed_values:
- description: Events in this category annotate API calls that occured on a system.
Typical sources for those events could be from the Operating System level through
the native libraries (for example Windows Win32, Linux libc, etc.), or managed
sources of events (such as ETW, syslog), but can also include network protocols
(such as SOAP, RPC, Websocket, REST, etc.)
expected_event_types:
- access
- admin
- allowed
- change
- creation
- deletion
- denied
- end
- info
- start
- user
name: api
- description: Events in this category are related to the challenge and response
process in which credentials are supplied and verified to allow the creation
of a session. Common sources for these logs are Windows event logs and ssh logs.
Expand Down
18 changes: 18 additions & 0 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3856,6 +3856,24 @@ event:
type: keyword
event.category:
allowed_values:
- description: Events in this category annotate API calls that occured on a
system. Typical sources for those events could be from the Operating System
level through the native libraries (for example Windows Win32, Linux libc,
etc.), or managed sources of events (such as ETW, syslog), but can also
include network protocols (such as SOAP, RPC, Websocket, REST, etc.)
expected_event_types:
- access
- admin
- allowed
- change
- creation
- deletion
- denied
- end
- info
- start
- user
name: api
- description: Events in this category are related to the challenge and response
process in which credentials are supplied and verified to allow the creation
of a session. Common sources for these logs are Windows event logs and ssh
Expand Down
18 changes: 18 additions & 0 deletions schemas/event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,24 @@
normalize:
- array
allowed_values:
- name: api
description: >
Events in this category annotate API calls that occured on a system. Typical sources
for those events could be from the Operating System level through the native libraries
(for example Windows Win32, Linux libc, etc.), or managed sources of events (such as ETW,
syslog), but can also include network protocols (such as SOAP, RPC, Websocket, REST, etc.)
expected_event_types:
- access
- admin
- allowed
- change
- creation
- deletion
- denied
- end
- info
- start
- user
- name: authentication
description: >
Events in this category are related to the challenge and response process
Expand Down

0 comments on commit bdcf857

Please sign in to comment.