Skip to content

Commit 3d36df5

Browse files
author
Adam Locke
authored
[DOCS] Move common scripting use cases up a level (#73445)
1 parent bbb25a0 commit 3d36df5

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

docs/reference/scripting.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ include::scripting/painless.asciidoc[]
5353

5454
include::scripting/using.asciidoc[]
5555

56+
include::scripting/common-script-uses.asciidoc[]
57+
5658
include::scripting/fields.asciidoc[]
5759

5860
include::scripting/security.asciidoc[]

docs/reference/scripting/common-script-uses.asciidoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[[common-script-uses]]
2-
=== Common scripting use cases
2+
== Common scripting use cases
33
You can write a script to do almost anything, and sometimes, that's
44
the trouble. It's challenging to know what's possible with scripts,
55
so the following examples address common uses cases where scripts are
66
really helpful.
77

8+
* <<scripting-field-extraction,Field extraction>>
9+
810
[[scripting-field-extraction]]
9-
==== Field extraction
11+
=== Field extraction
1012
The goal of field extraction is simple; you have fields in your data with a bunch of
1113
information, but you only want to extract pieces and parts.
1214

@@ -73,7 +75,7 @@ POST /my-index/_bulk?refresh
7375

7476
[discrete]
7577
[[field-extraction-ip]]
76-
===== Extract an IP address from a log message (Grok)
78+
==== Extract an IP address from a log message (Grok)
7779
If you want to retrieve results that include `clientip`, you can add that
7880
field as a runtime field in the mapping. The following runtime script defines a
7981
grok pattern that extracts structured fields out of the `message` field.

docs/reference/scripting/using.asciidoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,4 +566,3 @@ DELETE /_ingest/pipeline/my_test_scores_pipeline
566566
567567
////
568568

569-
include::common-script-uses.asciidoc[]

0 commit comments

Comments
 (0)