-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFC] wip: data_stream - stage 2 (#1145)
Co-authored-by: ruflin <spam@ruflin.com> Co-authored-by: Eric Beahan <eric.beahan@elastic.co>
- Loading branch information
1 parent
da5344d
commit 259823b
Showing
2 changed files
with
134 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
- name: data_stream | ||
title: Data Stream | ||
short: The data_stream fields are part defining the new data stream naming scheme. | ||
description: > | ||
The data_stream fields are part defining the new data stream naming scheme. | ||
In the new data stream naming scheme the value of the data stream fields combine to the name of the actual data stream in the following manner `{data_stream.type}-{data_stream.dataset}-{data_stream.namespace}`. This means the fields can only contain characters that are valid as part of names of data streams. More details about this can be found in this blog post. TODO: Add link to blog post | ||
Due to the fact that the values of the `data_stream` fields make up the data stream name, the restrictions on data stream names also apply to values for the `data_stream` fields. As an example, they cannot include \, /, *, ?, ", <, >, |, ` `. Please see the Elasticsearch reference for [restrictions on index/data stream names](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html#indices-create-api-path-params). | ||
fields: | ||
|
||
- name: type | ||
level: extended | ||
type: constant_keyword | ||
example: logs | ||
description: > | ||
An overarching type for the data stream. | ||
Currently allowed values include "logs", "metrics". We expect to also add "traces" and "synthetics" in the near future | ||
Any future values for `data_stream.type` should also adhere to the following restrictions (these are derived from the Elasticsearch index restrictions): | ||
* Must not contain `-` | ||
* Must not start with `+` or `_` | ||
short: An overarching type for the data stream. | ||
|
||
- name: dataset | ||
level: extended | ||
type: constant_keyword | ||
example: nginx.access | ||
description: > | ||
The field can contain anything that makes sense to signify the source of the data. | ||
Examples include `nginx.access`, `prometheus`, `endpoint` etc. For data streams that otherwise fit, but that do not have dataset set we use the value "generic" for the dataset value. `event.dataset` should have the same value as `data_stream.dataset`. | ||
Data dataset value has the following restrictions: | ||
* Must not contain `-` | ||
* No longer than 100 chars | ||
short: The field can contain anything that makes sense to signify the source of the data. | ||
|
||
- name: namespace | ||
level: extended | ||
type: constant_keyword | ||
example: logs | ||
description: > | ||
A user defined namespace. Namespaces are useful to allow grouping of data. | ||
Many of our customers already organize their indices this way, and now we are providing this best practice as a default. Many people will use `default` as the value. | ||
Data namespace value has the following restrictions: | ||
* Must not contain `-` | ||
* No longer than 100 chars | ||
short: A user defined namespace. Namespaces are useful to allow grouping of data. |