Commit graph

69 commits

Author SHA1 Message Date
James Rodewig
75af775498
[DOCS] Add link to Elastic data stream naming scheme blog (#68449) (#68456) 2021-02-03 10:42:06 -05:00
James Rodewig
1dd0f6cb4e
[DOCS] Add Elastic data stream naming scheme docs (#68310) (#68368) 2021-02-02 09:23:29 -05:00
James Rodewig
3ee4cc0610
[DOCS] Reuse built-in index templates admon (#68314) (#68317) 2021-02-01 12:48:01 -05:00
James Rodewig
eea0150764
[DOCS] Reuse timestamp reqs (#68299) (#68306)
Removes some duplication and reuses information about data stream
timestamp requirements using a tagged region.
2021-02-01 10:01:19 -05:00
Martijn van Groningen
68afd6e509
Adjust manage_follow_index privilege for promote data stream api (#67811)
Backport of #67773 to 7.x branch.

This fixes the manage_follow_index builtin privilege so that it can be used
for managing data streams in a follower cluster. In order to successfully
unfollow a data stream the promote data stream and rollover APIs need to be
executed. (This is additional to the close and unfollow APIs).
2021-01-21 10:44:35 +01:00
James Rodewig
11b6d5030d
[DOCS] Add security privileges to data stream API docs (#67612) (#67766) 2021-01-20 10:26:37 -05:00
James Rodewig
b8b841ab73
[DOCS] Fix title casing (#67529) (#67531) 2021-01-14 13:45:18 -05:00
James Rodewig
345dd82b06
[DOCS] Document hidden data streams and naming restrictions (#65862) (#67434) 2021-01-13 09:29:17 -05:00
James Rodewig
3872f08b33
[DOCS] Clean up index template xrefs (#67264) (#67272) 2021-01-11 12:58:00 -05:00
Yulia Čech
b5f9f214a1
[DOCS] Update data streams list screenshots and description of "delete data stream" (#67145) (#67172)
* [DOCS] Updated data streams list screenshots and delete functionality description

* Update docs/reference/data-streams/set-up-a-data-stream.asciidoc

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* Update set-up-a-data-stream.asciidoc

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-01-07 18:10:04 +01:00
James Rodewig
090f77ade2
[DOCS] Add index alias conversion to data stream setup docs (#65979) (#66054)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-12-23 09:53:09 -05:00
James Rodewig
83eabfcf2e
[DOCS] Data stream migration API (#65017) (#66786)
Co-authored-by: Dan Hermann <danhermann@users.noreply.github.com>
2020-12-23 09:40:21 -05:00
James Rodewig
d126c31636
[DOCS] Fix Fleet links (#66553) (#66558) 2020-12-17 15:35:15 -05:00
Dan Hermann
39c09f9326
[7.x] Include date in data stream backing index names (#66307) 2020-12-14 19:36:59 -06:00
Martijn van Groningen
1596b93731
Protect replicated data streams against local rollovers (#65999)
Backporting #64710 to the 7.x branch.

When a data stream is being auto followed then a rollover in a local cluster can break auto following,
if the local cluster performs a rollover then it creates a new write index and if then later the remote
cluster rolls over as well then that new write index can't be replicated, because it has the same name
as in the write index in the local cluster, which was created earlier.

If a data stream is managed by ccr, then the local cluster should not do a rollover for those data streams.
The data stream should be rolled over in the remote cluster and that change should replicate to the local
cluster. Performing a rollover in the local cluster is an operation that the data stream support in ccr should
perform.

To protect against rolling over a replicated data stream, this PR adds a replicate field to DataStream class.
The rollover api will fail with an error in case a data stream is being rolled over and the targeted data stream is
a replicated data stream. When the put follow api creates a data stream in the local cluster then the replicate flag
is set to true. There should be a way to turn a replicated data stream into a regular data stream when for example
during disaster recovery. The newly added api in this pr (promote data stream api) is doing that. After a replicated
data stream is promoted to a regular data stream then the local data stream can be rolled over, so that the new
write index is no longer a follower index. Also if the put follow api is attempting to update this data stream
(for example to attempt to resume auto following) then that with fail, because the data stream is no longer a
replicated data stream.

Today with time based indices behind an alias, the is_write_index property isn't replicated from remote cluster
to the local cluster, so when attempting to rollover the alias in the local cluster the rollover fails, because the
alias doesn't have a write index. The added replicated field in the DataStream class and added validation
achieve the same kind of protection, but in a more robust way.

A followup from #61993
2020-12-08 10:45:58 +01:00
James Rodewig
28b54debdb
[DOCS] Make data stream names consistent (#65920) (#65943) 2020-12-07 09:13:55 -05:00
DeDe Morton
9908b871ec
Fix links to Fleet overview (#65174) (#65232) 2020-11-18 11:03:44 -08:00
Przemko Robakowski
a06b65cfb9
[7.x] Hidden data streams (#63987) (#64402)
Backports the following commits to 7.x:

Hidden data streams (#63987)
2020-11-02 12:10:30 +01:00
James Rodewig
abd23f6add [DOCS] Minor data stream docs fixes 2020-10-24 19:50:39 -04:00
James Rodewig
d9d405c091
[DOCS] Remove unneeded link 2020-10-24 17:07:32 -04:00
James Rodewig
8a223a1674
[DOCS] Tighten data streams copy (#64085) (#64110) 2020-10-24 14:39:03 -04:00
Lee Hinman
6b2af30a62
[7.x] Add "synthetics-*-*" templates for synthetics fleet data (#62193) (#62346)
* Add "synthetics-*-*" templates for synthetics fleet data

For the Elastic Agent we currently have `logs` and `metrics`, however, synthetic data doesn't belong
with those and thus we should have a place for it to live. This would be data reported from
heartbeat and under the 'monitoring' category.

This commit adds a composable index template for `synthetics-*-*` indices similar to the work in
 #56709 and #57629.

Resolves #61665
2020-09-14 17:14:34 -06:00
James Rodewig
4701832879
[DOCS] Add 7.9 breaking change for built-in templates (#61549) (#61558) 2020-08-26 08:10:59 -04:00
James Rodewig
2b852388c5
[DOCS] Fix hyphenation for "time series" (#61472) (#61481) 2020-08-24 11:18:07 -04:00
James Rodewig
6a248aea07
[DOCS] Add admon for built-in index templates (#61063) (#61220)
Adds an important admonition for the built-in `metrics-*-*` and `logs-*-*` index
templates.

Updates several put index template snippets to include a priority.
2020-08-17 12:48:34 -04:00
James Rodewig
910abeea2e
[DOCS] Change wildcard to index pattern in DS docs (#61058) (#61060) 2020-08-12 15:14:03 -04:00
James Rodewig
ff4ea4720a
[DOCS] Update example data stream names (#60783) (#60820)
Uses `my-data-stream` in place of `logs` for data stream examples.
This provides a more intuitive experience for users that copy/paste
their own values into snippets.
2020-08-06 09:38:35 -04:00
James Rodewig
5be515f126 [DOCS] Unhide EQL search in data streams docs 2020-08-03 11:59:12 -04:00
James Rodewig
747f8bfe79
[DOCS] Add Kibana screenshots to data stream docs (#60118) (#60217) 2020-07-27 10:39:32 -04:00
James Rodewig
401e12dc2b
[DOCS] Fix data stream docs (#59818) (#60010) 2020-07-21 17:04:13 -04:00
James Rodewig
76b2dd23e2
[DOCS] Document data stream stats API (#59435) (#59874) 2020-07-20 09:50:26 -04:00
James Rodewig
ef9b14b07e
[DOCS] Add write_index_only param to ds mapping tutorials (#59618) (#59639) 2020-07-15 13:02:01 -04:00
James Rodewig
4e58f967de
[DOCS] Update ds overview for optional @timestamp mapping (#59558) (#59614) 2020-07-15 09:46:55 -04:00
James Rodewig
e5baacbe2e
[DOCS] Simplify index template snippets for data streams (#59533) (#59553)
Removes the `@timestamp` field mapping from several data stream index
template snippets.

With #59317, the `@timestamp` field defaults to a `date` field data type
for data streams.
2020-07-14 17:28:43 -04:00
James Rodewig
be4483034c
[DOCS] Add example of ds index template with date_nanos mapping (#59535) (#59570) 2020-07-14 17:28:31 -04:00
Andrei Dan
7dcdaeae49
Default to @timestamp in composable template datastream definition (#59317) (#59516)
This makes the data_stream timestamp field specification optional when
defining a composable template.
When there isn't one specified it will default to `@timestamp`.

(cherry picked from commit 5609353c5d)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
2020-07-14 12:36:54 +01:00
Andrei Dan
4180333bbc
[7.x] Composable templates: add a default mapping for @timestamp (#59244) (#59510)
This adds a low precendece mapping for the `@timestamp` field with
type `date`.
This will aid with the bootstrapping of data streams as a timestamp
mapping can be omitted when nanos precision is not needed.

(cherry picked from commit 4e72f43d62)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
2020-07-14 11:29:33 +01:00
James Rodewig
39bcc4a1a7
[DOCS] Add ingest pipeline ex to data stream docs (#58343) (#59402) 2020-07-13 09:03:36 -04:00
James Rodewig
fca722cee1
[DOCS] Add x-pack tag to data stream docs (#59241) (#59299) 2020-07-09 13:12:38 -04:00
James Rodewig
d2c5a4c5e9
[7.x] [DOCS] Update get data stream API response (#59197) (#59221)
Updates docs and snippets for changes made to the get data stream API with
PR #59128.
2020-07-08 14:04:14 -04:00
James Rodewig
838f717e5f
[DOCS] Add data streams to security docs (#59084) (#59237) 2020-07-08 12:53:56 -04:00
James Rodewig
6ed356ffc3
[DOCS] Replace datatype with data type (#58972) (#59184) 2020-07-07 14:59:35 -04:00
James Rodewig
d66084dcaf
[DOCS] Update data stream mapping and setting docs (#58874) (#59067) 2020-07-06 11:58:43 -04:00
James Rodewig
31c71914b7
[DOCS] Clean up Use a data stream test snippets (#58968) (#58978) 2020-07-06 08:39:04 -04:00
James Rodewig
7a8da9daa3
[DOCS] Document open requests for data streams (#58615) (#58621)
Adds an open API example to the data streams docs. Also updates the
existing open API docs to make them aware of data streams.
2020-07-01 11:22:45 -04:00
James Rodewig
19190c529c [DOCS] Reword admon for index API and data streams 2020-06-30 09:54:24 -04:00
James Rodewig
d33764583c
[7.x] [DOCS] Document delete/update by query for data streams (#58679) (#58706) 2020-06-30 08:35:13 -04:00
James Rodewig
c06c89d3db
[DOCS] Remove composable index template refs (#58567) (#58612)
Replaces `composable index template` and `composable template` with
`index template` throughout data stream-related docs.

`Composable index template` is only used to contrast with legacy index
templates.
2020-06-26 11:52:58 -04:00
James Rodewig
c3f4034199
[DOCS] Note that DS timestamp field mapping changes require reindex (#58444) (#58517)
With #58096, data streams now track the timestamp field mapping outside
of the template associated with the stream. This means you can no longer
update the timestamp field mapping using template changes.

This updates the associated data stream docs.
2020-06-24 17:21:26 -04:00
James Rodewig
9d03204308
[DOCS] Prohibit deletion of composable template in use by data stream (#58347) (#58430)
Notes that you cannot delete a composable template currently in use
by a data stream. Relates to #57957.
2020-06-23 09:01:17 -04:00