forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install data stream template for Kibana reporting
Kibana reporting is migrating to a data stream. This commit installs an index template for the hidden data stream, as well as updating the `kibana_system` role to allow accessing the data. Relates to elastic/kibana#161606
- Loading branch information
Showing
6 changed files
with
232 additions
and
2 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
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
168 changes: 168 additions & 0 deletions
168
x-pack/plugin/core/src/main/resources/kibana-reporting-template.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,168 @@ | ||
{ | ||
"index_patterns": [".kibana-reporting*"], | ||
"priority": 100, | ||
"data_stream": { | ||
"hidden": true | ||
}, | ||
"allow_auto_create": true, | ||
"template": { | ||
"settings": { | ||
"number_of_shards": 1, | ||
"auto_expand_replicas": "0-1" | ||
}, | ||
"mappings": { | ||
"properties": { | ||
"meta": { | ||
"properties": { | ||
"objectType": { | ||
"type": "text", | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword", | ||
"ignore_above": 256 | ||
} | ||
} | ||
}, | ||
"layout": { | ||
"type": "text", | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword", | ||
"ignore_above": 256 | ||
} | ||
} | ||
}, | ||
"isDeprecated": { | ||
"type": "boolean" | ||
} | ||
} | ||
}, | ||
"migration_version": { | ||
"type": "keyword" | ||
}, | ||
"jobtype": { | ||
"type": "keyword" | ||
}, | ||
"payload": { | ||
"type": "object", | ||
"enabled": false | ||
}, | ||
"priority": { | ||
"type": "byte" | ||
}, | ||
"timeout": { | ||
"type": "long" | ||
}, | ||
"process_expiration": { | ||
"type": "date" | ||
}, | ||
"created_by": { | ||
"type": "keyword" | ||
}, | ||
"created_at": { | ||
"type": "date" | ||
}, | ||
"started_at": { | ||
"type": "date" | ||
}, | ||
"completed_at": { | ||
"type": "date" | ||
}, | ||
"attempts": { | ||
"type": "short" | ||
}, | ||
"max_attempts": { | ||
"type": "short" | ||
}, | ||
"kibana_name": { | ||
"type": "keyword" | ||
}, | ||
"kibana_id": { | ||
"type": "keyword" | ||
}, | ||
"status": { | ||
"type": "keyword" | ||
}, | ||
"parent_id": { | ||
"type": "keyword" | ||
}, | ||
"output": { | ||
"type": "object", | ||
"properties": { | ||
"error_code": { | ||
"type": "keyword" | ||
}, | ||
"chunk": { | ||
"type": "long" | ||
}, | ||
"content_type": { | ||
"type": "keyword" | ||
}, | ||
"size": { | ||
"type": "long" | ||
}, | ||
"content": { | ||
"type": "object", | ||
"enabled": false | ||
} | ||
} | ||
}, | ||
"metrics": { | ||
"type": "object", | ||
"properties": { | ||
"csv": { | ||
"type": "object", | ||
"properties": { | ||
"rows": { | ||
"type": "long" | ||
} | ||
} | ||
}, | ||
"pdf": { | ||
"type": "object", | ||
"properties": { | ||
"pages": { | ||
"type": "long" | ||
}, | ||
"cpu": { | ||
"type": "double" | ||
}, | ||
"cpuInPercentage": { | ||
"type": "double" | ||
}, | ||
"memory": { | ||
"type": "long" | ||
}, | ||
"memoryInMegabytes": { | ||
"type": "double" | ||
} | ||
} | ||
}, | ||
"png": { | ||
"type": "object", | ||
"properties": { | ||
"cpu": { | ||
"type": "double" | ||
}, | ||
"cpuInPercentage": { | ||
"type": "double" | ||
}, | ||
"memory": { | ||
"type": "long" | ||
}, | ||
"memoryInMegabytes": { | ||
"type": "double" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"_meta": { | ||
"description": "default kibana reporting template installed by elasticsearch", | ||
"managed": true | ||
}, | ||
"version": ${xpack.stack.template.version} | ||
} |
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
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
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