|
@@ -94,7 +94,7 @@ include::common-log-format-example.asciidoc[tag=common-log-pipeline]
|
|
|
////
|
|
|
[source,console]
|
|
|
----
|
|
|
-PUT /_ingest/pipeline/my-pipeline
|
|
|
+PUT _ingest/pipeline/my-pipeline
|
|
|
{
|
|
|
// tag::common-log-pipeline[]
|
|
|
"processors": [
|
|
@@ -160,7 +160,7 @@ You’re now ready to index the logs data to a <<data-streams,data stream>>.
|
|
|
+
|
|
|
[source,console]
|
|
|
----
|
|
|
-PUT /_index_template/my-data-stream-template
|
|
|
+PUT _index_template/my-data-stream-template
|
|
|
{
|
|
|
"index_patterns": [ "my-data-stream*" ],
|
|
|
"data_stream": { },
|
|
@@ -173,7 +173,7 @@ PUT /_index_template/my-data-stream-template
|
|
|
+
|
|
|
[source,console]
|
|
|
----
|
|
|
-POST /my-data-stream/_doc?pipeline=my-pipeline
|
|
|
+POST my-data-stream/_doc?pipeline=my-pipeline
|
|
|
{
|
|
|
"message": "212.87.37.154 - - [05/May/2099:16:21:15 +0000] \"GET /favicon.ico HTTP/1.1\" 200 3638 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36\""
|
|
|
}
|
|
@@ -188,7 +188,7 @@ the <<mapping-source-field,document source>>.
|
|
|
--
|
|
|
[source,console]
|
|
|
----
|
|
|
-GET /my-data-stream/_search?filter_path=hits.hits._source
|
|
|
+GET my-data-stream/_search?filter_path=hits.hits._source
|
|
|
----
|
|
|
// TEST[continued]
|
|
|
|
|
@@ -262,8 +262,8 @@ The API returns:
|
|
|
////
|
|
|
[source,console]
|
|
|
----
|
|
|
-DELETE /_data_stream/*
|
|
|
-DELETE /_index_template/*
|
|
|
+DELETE _data_stream/*
|
|
|
+DELETE _index_template/*
|
|
|
----
|
|
|
// TEST[continued]
|
|
|
////
|