-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add fleet-server package * add ilm policy examples * fix template formatting * fix priority so it does not conflict * apply proper formatting * Functional indices boostrap * Make lint happier * Address review feedback. Add fake datastream, to pass linter * Better Fleet Server configuration description Co-authored-by: ruflin <spam@ruflin.com>
- Loading branch information
Showing
14 changed files
with
413 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
14 changes: 14 additions & 0 deletions
14
packages/fleet_server/data_stream/fleet_server/fields/base-fields.yml
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,14 @@ | ||
- name: data_stream.type | ||
type: constant_keyword | ||
description: Datastream type. | ||
- name: data_stream.dataset | ||
type: constant_keyword | ||
description: Datastream dataset. | ||
- name: data_stream.namespace | ||
type: constant_keyword | ||
description: Datastream namespace. | ||
- name: "@timestamp" | ||
type: date | ||
description: > | ||
Event timestamp. | ||
2 changes: 2 additions & 0 deletions
2
packages/fleet_server/data_stream/fleet_server/fields/package-fields.yml
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,2 @@ | ||
- name: fleet_server | ||
type: group |
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,3 @@ | ||
title: Fleet Server | ||
type: logs | ||
release: experimental |
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 @@ | ||
# Fleet Server package |
23 changes: 23 additions & 0 deletions
23
packages/fleet_server/elasticsearch/ilm_policy/.fleet-actions-results.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,23 @@ | ||
{ | ||
"policy": { | ||
"phases": { | ||
"hot": { | ||
"min_age": "0ms", | ||
"actions": { | ||
"rollover": { | ||
"max_size": "300gb", | ||
"max_age": "30d" | ||
} | ||
} | ||
}, | ||
"delete": { | ||
"min_age": "90d", | ||
"actions": { | ||
"delete": { | ||
"delete_searchable_snapshot": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
packages/fleet_server/elasticsearch/index_template/.fleet-actions-results.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,35 @@ | ||
{ | ||
"index_patterns": [ | ||
".fleet-actions-results" | ||
], | ||
"data_stream": {}, | ||
"template": { | ||
"settings": { | ||
"index.lifecycle.name": ".fleet-actions-results-ilm-policy" | ||
}, | ||
"mappings": { | ||
"dynamic": false, | ||
"properties": { | ||
"action_id": { | ||
"type": "keyword" | ||
}, | ||
"agent_id": { | ||
"type": "keyword" | ||
}, | ||
"data": { | ||
"enabled": false, | ||
"type": "object" | ||
}, | ||
"error": { | ||
"type": "keyword" | ||
}, | ||
"@timestamp": { | ||
"type": "date" | ||
} | ||
} | ||
} | ||
}, | ||
"composed_of": [], | ||
"priority": 200, | ||
"version": 1 | ||
} |
38 changes: 38 additions & 0 deletions
38
packages/fleet_server/elasticsearch/index_template/.fleet-actions.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,38 @@ | ||
{ | ||
"index_patterns": [ | ||
".fleet-actions" | ||
], | ||
"template": { | ||
"settings": {}, | ||
"mappings": { | ||
"dynamic": false, | ||
"properties": { | ||
"action_id": { | ||
"type": "keyword" | ||
}, | ||
"agents": { | ||
"type": "keyword" | ||
}, | ||
"data": { | ||
"enabled": false, | ||
"type": "object" | ||
}, | ||
"expiration": { | ||
"type": "date" | ||
}, | ||
"input_id": { | ||
"type": "keyword" | ||
}, | ||
"@timestamp": { | ||
"type": "date" | ||
}, | ||
"type": { | ||
"type": "keyword" | ||
} | ||
} | ||
} | ||
}, | ||
"composed_of": [], | ||
"priority": 200, | ||
"version": 1 | ||
} |
94 changes: 94 additions & 0 deletions
94
packages/fleet_server/elasticsearch/index_template/.fleet-agents.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,94 @@ | ||
{ | ||
"index_patterns": [ | ||
".fleet-agents" | ||
], | ||
"template": { | ||
"settings": {}, | ||
"mappings": { | ||
"dynamic": false, | ||
"properties": { | ||
"access_api_key_id": { | ||
"type": "keyword" | ||
}, | ||
"action_seq_no": { | ||
"type": "integer" | ||
}, | ||
"active": { | ||
"type": "boolean" | ||
}, | ||
"agent": { | ||
"properties": { | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"version": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"default_api_key": { | ||
"type": "keyword" | ||
}, | ||
"default_api_key_id": { | ||
"type": "keyword" | ||
}, | ||
"enrolled_at": { | ||
"type": "date" | ||
}, | ||
"last_checkin": { | ||
"type": "date" | ||
}, | ||
"last_checkin_status": { | ||
"type": "keyword" | ||
}, | ||
"last_updated": { | ||
"type": "date" | ||
}, | ||
"local_metadata": { | ||
"enabled": false, | ||
"type": "object" | ||
}, | ||
"packages": { | ||
"type": "keyword" | ||
}, | ||
"policy_coordinator_idx": { | ||
"type": "integer" | ||
}, | ||
"policy_id": { | ||
"type": "keyword" | ||
}, | ||
"policy_revision_idx": { | ||
"type": "integer" | ||
}, | ||
"shared_id": { | ||
"type": "keyword" | ||
}, | ||
"type": { | ||
"type": "keyword" | ||
}, | ||
"unenrolled_at": { | ||
"type": "date" | ||
}, | ||
"unenrollment_started_at": { | ||
"type": "date" | ||
}, | ||
"updated_at": { | ||
"type": "date" | ||
}, | ||
"upgrade_started_at": { | ||
"type": "date" | ||
}, | ||
"upgraded_at": { | ||
"type": "date" | ||
}, | ||
"user_provided_metadata": { | ||
"enabled": false, | ||
"type": "object" | ||
} | ||
} | ||
} | ||
}, | ||
"composed_of": [], | ||
"priority": 200, | ||
"version": 1 | ||
} |
40 changes: 40 additions & 0 deletions
40
packages/fleet_server/elasticsearch/index_template/.fleet-enrollment-api-keys.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,40 @@ | ||
{ | ||
"index_patterns": [ | ||
".fleet-enrollment-api-keys" | ||
], | ||
"template": { | ||
"settings": {}, | ||
"mappings": { | ||
"dynamic": false, | ||
"properties": { | ||
"active": { | ||
"type": "boolean" | ||
}, | ||
"api_key": { | ||
"type": "keyword" | ||
}, | ||
"api_key_id": { | ||
"type": "keyword" | ||
}, | ||
"created_at": { | ||
"type": "date" | ||
}, | ||
"expire_at": { | ||
"type": "date" | ||
}, | ||
"name": { | ||
"type": "keyword" | ||
}, | ||
"policy_id": { | ||
"type": "keyword" | ||
}, | ||
"updated_at": { | ||
"type": "date" | ||
} | ||
} | ||
} | ||
}, | ||
"composed_of": [], | ||
"priority": 200, | ||
"version": 1 | ||
} |
29 changes: 29 additions & 0 deletions
29
packages/fleet_server/elasticsearch/index_template/.fleet-policies-leader.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,29 @@ | ||
{ | ||
"index_patterns": [ | ||
".fleet-policies-leader" | ||
], | ||
"template": { | ||
"settings": {}, | ||
"mappings": { | ||
"dynamic": false, | ||
"properties": { | ||
"server": { | ||
"properties": { | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"version": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"@timestamp": { | ||
"type": "date" | ||
} | ||
} | ||
} | ||
}, | ||
"composed_of": [], | ||
"priority": 200, | ||
"version": 1 | ||
} |
35 changes: 35 additions & 0 deletions
35
packages/fleet_server/elasticsearch/index_template/.fleet-policies.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,35 @@ | ||
{ | ||
"index_patterns": [ | ||
".fleet-policies" | ||
], | ||
"template": { | ||
"settings": {}, | ||
"mappings": { | ||
"dynamic": false, | ||
"properties": { | ||
"coordinator_idx": { | ||
"type": "integer" | ||
}, | ||
"data": { | ||
"enabled": false, | ||
"type": "object" | ||
}, | ||
"default_fleet_server": { | ||
"type": "boolean" | ||
}, | ||
"policy_id": { | ||
"type": "keyword" | ||
}, | ||
"revision_idx": { | ||
"type": "integer" | ||
}, | ||
"@timestamp": { | ||
"type": "date" | ||
} | ||
} | ||
} | ||
}, | ||
"composed_of": [], | ||
"priority": 200, | ||
"version": 1 | ||
} |
55 changes: 55 additions & 0 deletions
55
packages/fleet_server/elasticsearch/index_template/.fleet-servers.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,55 @@ | ||
{ | ||
"index_patterns": [ | ||
".fleet-servers" | ||
], | ||
"template": { | ||
"settings": {}, | ||
"mappings": { | ||
"dynamic": false, | ||
"properties": { | ||
"agent": { | ||
"properties": { | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"version": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"host": { | ||
"properties": { | ||
"architecture": { | ||
"type": "keyword" | ||
}, | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"ip": { | ||
"type": "keyword" | ||
}, | ||
"name": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"server": { | ||
"properties": { | ||
"id": { | ||
"type": "keyword" | ||
}, | ||
"version": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"@timestamp": { | ||
"type": "date" | ||
} | ||
} | ||
} | ||
}, | ||
"composed_of": [], | ||
"priority": 200, | ||
"version": 1 | ||
} |
Oops, something went wrong.