-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the creation of the Packages index template and index (#59)
* Add wazuh-states-packages template * Create packages index template upon plugin load
- Loading branch information
Showing
2 changed files
with
77 additions
and
0 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
76 changes: 76 additions & 0 deletions
76
plugins/wazuh-indexer-setup/src/main/resources/index-template-packages.json
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,76 @@ | ||
{ | ||
"index_patterns": [ | ||
"wazuh-states-inventory-packages*" | ||
], | ||
"mappings": { | ||
"date_detection": false, | ||
"dynamic": "strict", | ||
"properties": { | ||
"@timestamp": { | ||
"type": "date" | ||
}, | ||
"agent": { | ||
"properties": { | ||
"groups": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
}, | ||
"id": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"package": { | ||
"properties": { | ||
"architecture": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
}, | ||
"description": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
}, | ||
"installed": { | ||
"type": "date" | ||
}, | ||
"name": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
}, | ||
"path": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
}, | ||
"size": { | ||
"type": "long" | ||
}, | ||
"type": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
}, | ||
"version": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"order": 1, | ||
"settings": { | ||
"index": { | ||
"number_of_replicas": "0", | ||
"number_of_shards": "1", | ||
"query.default_field": [ | ||
"agent.id", | ||
"agent.groups", | ||
"package.architecture", | ||
"package.name", | ||
"package.version", | ||
"package.type" | ||
], | ||
"refresh_interval": "5s" | ||
} | ||
} | ||
} |