Skip to content

Commit

Permalink
Fleet Server package (#544)
Browse files Browse the repository at this point in the history
* 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
aleksmaus and ruflin authored Jan 20, 2021
1 parent 20ea344 commit c8027b0
Show file tree
Hide file tree
Showing 14 changed files with 413 additions and 0 deletions.
Empty file.
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: fleet_server
type: group
3 changes: 3 additions & 0 deletions packages/fleet_server/data_stream/fleet_server/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: Fleet Server
type: logs
release: experimental
1 change: 1 addition & 0 deletions packages/fleet_server/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fleet Server package
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
}
}
}
}
}
}
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
}
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
}
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
}
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
}
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
}
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
}
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
}
Loading

0 comments on commit c8027b0

Please sign in to comment.