forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add @timestamp
and delivery_timestamp
fields to the commands index data model
#568
Merged
Conversation
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
QU3B1M
changed the title
Enhancement/565 command manager timeseries
Implement ECS fields @timestamp and delivery_timestamp to commands index data model
Nov 28, 2024
Update command event_generator Remove delivery_timestamp from custom command fields
Now delivery_timestamp can be used as part of base Updated the command subset.yml
Generated command index template {
"index_patterns": [
".commands*"
],
"mappings": {
"date_detection": false,
"dynamic": "strict",
"properties": {
"@timestamp": {
"type": "date"
},
"agent": {
"properties": {
"groups": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"command": {
"properties": {
"action": {
"properties": {
"args": {
"ignore_above": 1024,
"type": "keyword"
},
"name": {
"ignore_above": 1024,
"type": "keyword"
},
"version": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"order_id": {
"ignore_above": 1024,
"type": "keyword"
},
"request_id": {
"ignore_above": 1024,
"type": "keyword"
},
"result": {
"properties": {
"code": {
"type": "short"
},
"data": {
"ignore_above": 1024,
"type": "keyword"
},
"message": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"source": {
"ignore_above": 1024,
"type": "keyword"
},
"status": {
"ignore_above": 1024,
"type": "keyword"
},
"target": {
"properties": {
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"type": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"timeout": {
"type": "short"
},
"user": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"delivery_timestamp": {
"type": "date"
}
}
},
"order": 1,
"settings": {
"index": {
"hidden": true,
"number_of_replicas": "0",
"number_of_shards": "1",
"query.default_field": [
"command.source",
"command.target.type",
"command.status",
"command.action.name"
],
"refresh_interval": "5s"
}
}
}
|
AlexRuiz7
requested changes
Nov 29, 2024
AlexRuiz7
changed the title
Implement ECS fields @timestamp and delivery_timestamp to commands index data model
Add Nov 29, 2024
@timestamp
and delivery_timestamp
fields to the commands index data model
Remove duplicated fields and order the full document Update command ECS index documentation
AlexRuiz7
approved these changes
Dec 3, 2024
AlexRuiz7
approved these changes
Dec 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add the base ECS field
@timestamp
, and a custom fielddelivery_timestamp
into thecommands
index data model at the document top level.delivery_timestamp
Update
event_generator
with the new fieldsFunctionality validation
Command document generated with the
event_generator
Related Issues
Resolves #565
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.