|
1 | 1 | [role="xpack"] |
2 | 2 | [[automating-report-generation]] |
3 | 3 | == Automating report generation |
4 | | -You can automatically generate reports with {watcher}, or by submitting |
5 | | -HTTP `POST` requests from a script. |
| 4 | +Automatically generate PDF and CSV reports by submitting HTTP `POST` requests using {watcher} or a script. |
6 | 5 |
|
7 | 6 | include::report-intervals.asciidoc[] |
8 | 7 |
|
9 | 8 | [float] |
10 | | -=== Get the POST URL |
| 9 | +=== Create a POST URL |
11 | 10 |
|
12 | | -Generating a report either through {watcher} or a script requires capturing the **POST |
13 | | -URL**, which is the URL to queue a report for generation. |
| 11 | +Create the POST |
| 12 | +URL that triggers a report to generate. |
14 | 13 |
|
15 | | -To get the URL for triggering PDF report generation during a given time period: |
| 14 | +To create the POST URL for PDF reports: |
16 | 15 |
|
17 | | -. Load the saved object in *Visualize* or *Dashboard*. |
18 | | -. To specify a relative or absolute time period, use the time filter. |
19 | | -. In the {kib} toolbar, click *Share*. |
20 | | -. Select *PDF Reports*. |
21 | | -. Click **Copy POST URL**. |
| 16 | +. Go to *Visualize* or *Dashboard*, then open the visualization or dashboard. |
| 17 | ++ |
| 18 | +To specify a relative or absolute time period, use the time filter. |
22 | 19 |
|
23 | | -To get the URL for triggering CSV report generation during a given time period: |
| 20 | +. From the {kib} toolbar, click *Share*, then select *PDF Reports*. |
| 21 | + |
| 22 | +. Click *Copy POST URL*. |
| 23 | ++ |
| 24 | +[role="screenshot"] |
| 25 | +image::images/report-automate-pdf.png[Generate Visualize and Dashboard reports] |
| 26 | + |
| 27 | + |
| 28 | +To create the POST URL for CSV reports: |
24 | 29 |
|
25 | 30 | . Load the saved search in *Discover*. |
26 | | -. To specify a relative or absolute time period, use the time filter. |
27 | | -. In the {kib} toolbar, click *Share*. |
28 | | -. Select *CSV Reports*. |
29 | | -. Click **Copy POST URL**. |
| 31 | ++ |
| 32 | +To specify a relative or absolute time period, use the time filter. |
| 33 | + |
| 34 | +. From the {kib} toolbar, click *Share*, then select *CSV Reports*. |
| 35 | + |
| 36 | +. Click *Copy POST URL*. |
| 37 | ++ |
| 38 | +[role="screenshot"] |
| 39 | +image::images/report-automate-csv.png[Generate Discover reports] |
30 | 40 |
|
31 | 41 | [float] |
32 | 42 | === Use Watcher |
|
0 commit comments