Skip to content

Commit

Permalink
Add legacy index template (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 authored Sep 4, 2024
1 parent 31f0c36 commit 067fdbe
Showing 1 changed file with 71 additions and 63 deletions.
Original file line number Diff line number Diff line change
@@ -1,70 +1,78 @@
{
"index_patterns": [
".agents"
],
"mappings": {
"date_detection": false,
"dynamic": "strict",
"properties": {
"agent": {
"properties": {
"groups": {
"ignore_above": 1024,
"type": "keyword"
},
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"key": {
"ignore_above": 1024,
"type": "keyword"
},
"last_login": {
"type": "date"
},
"name": {
"ignore_above": 1024,
"type": "keyword"
},
"persistent_connection_node": {
"ignore_above": 1024,
"type": "keyword"
},
"type": {
"ignore_above": 1024,
"type": "keyword"
},
"version": {
"ignore_above": 1024,
"type": "keyword"
"index_patterns": [
".agents*"
],
"mappings": {
"date_detection": false,
"dynamic": "strict",
"properties": {
"agent": {
"properties": {
"groups": {
"ignore_above": 1024,
"type": "keyword"
},
"id": {
"ignore_above": 1024,
"type": "keyword"
},
"is_connected": {
"type": "boolean"
},
"key": {
"ignore_above": 1024,
"type": "keyword"
},
"last_login": {
"type": "date"
},
"name": {
"ignore_above": 1024,
"type": "keyword"
},
"type": {
"ignore_above": 1024,
"type": "keyword"
},
"version": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"host": {
"properties": {
"ip": {
"type": "ip"
},
"os": {
"properties": {
"full": {
"ignore_above": 1024,
"type": "keyword"
}
}
}
},
"message": {
"type": "text"
},
"tags": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"order": 1,
"settings": {
"index": {
"hidden": true,
"number_of_replicas": "0",
"number_of_shards": "1",
"query.default_field": [
"agent.id",
"agent.name",
"agent.type",
"agent.version",
"agent.name"
],
"refresh_interval": "5s"
}
}
},
"order": 1,
"settings": {
"index": {
"hidden": true,
"number_of_replicas": "0",
"number_of_shards": "1",
"query.default_field": [
"agent.id",
"agent.name",
"agent.type",
"agent.version",
"agent.name",
"host.os.full",
"host.ip"
],
"refresh_interval": "5s"
}
}
}

0 comments on commit 067fdbe

Please sign in to comment.