forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
@timestamp
and delivery_timestamp
fields to the commands inde…
…x data model (#568) * Add ECS fields @timestamp and delivery_timestamp to command index data model * Update command event_generator with new fields * Move delivery_timestamp to doc level Update command event_generator Remove delivery_timestamp from custom command fields * Move delivery_timestamp definition to a new file * Rename delivery_timestamp custom group to 'base' Now delivery_timestamp can be used as part of base Updated the command subset.yml * Fix the include_all_fields option on the event_generator * Update command event_generator Remove duplicated fields and order the full document Update command ECS index documentation * Update event_generator to use date_time_no_millis compatible datetime format * Improve command.timeout description * Add new revision to commands.md --------- Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>
- Loading branch information
Showing
5 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- name: base | ||
title: Wazuh base fields | ||
root: true | ||
fields: | ||
- name: delivery_timestamp | ||
type: date | ||
level: custom | ||
description: > | ||
The latest date-time for the command to be delivered. Calculated as the current timestamp plus the timeout. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ fields: | |
base: | ||
fields: | ||
tags: [] | ||
"@timestamp": {} | ||
"delivery_timestamp": {} | ||
agent: | ||
fields: | ||
groups: {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters