Skip to content

Commit

Permalink
Implement the creation of the states-inventory-packages index templat…
Browse files Browse the repository at this point in the history
…e and index

Signed-off-by: Fede Tux <[email protected]>
  • Loading branch information
AlexRuiz7 authored and Fede Tux committed Sep 12, 2024
1 parent d5173ec commit 7ec2173
Showing 1 changed file with 67 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,75 @@
"index_patterns": [
"wazuh-states-inventory-packages*"
],
"priority": 1,
"template": {
"settings": {
"index": {
"hidden": true,
"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"
}
},
"mappings": {
"date_detection": false,
"dynamic": "strict",
"properties": {
"@timestamp": {
"type": "date"
"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"
}
}
}

0 comments on commit 7ec2173

Please sign in to comment.