-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs/Reporting] Improve docs on automating Reporting #40931
Conversation
include::report-intervals.asciidoc[] | ||
|
||
To get the URL for triggering a report generation during a given time period: | ||
[float] | ||
=== Getting the POST URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Entirely new section to talk about what is the POST URL
|
||
To configure a watch to email reports, you use the `reporting` attachment type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to watch-example
|
||
[float] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lack of this [float]
caused this section to be its own page, which seemed wrong
@@ -18,7 +25,7 @@ PUT _watcher/watch/error_report | |||
"attachments" : { | |||
"error_report.pdf" : { | |||
"reporting" : { | |||
"url": "http://0.0.0.0:5601/api/reporting/generate/dashboard/Error-Monitoring?_g=(time:(from:now-1d%2Fd,mode:quick,to:now))", <2> | |||
"url": "http://0.0.0.0:5601/api/reporting/generate/printablePdf?jobParams=...", <2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
report from the Kibana UI. | ||
<3> Optional, default is 40 | ||
<4> Optional, default is 15s | ||
<5> Provide user credentials for a user with permission to access Kibana and | ||
{reporting}. | ||
//For more information, see <<secure-reporting>>. | ||
//<<reporting-app-users, Setting up a Reporting Role>>. | ||
|
||
NOTE: Reporting is integrated with Watcher only as an email attachment type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new NOTE I felt it important to mention
|
||
If there was an error in generating the report, the download URL will return a 500 | ||
(Internal Server Error) response. More information will be available in the the | ||
Reporting management page in Kibana: *Management > Kibana > Reporting* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Info about 503 was pre-existing. Info about the 500 is new
Wrapping this in IMPORTANT is also new
💔 Build Failed |
|
||
[float] | ||
== Deprecated Report URLs | ||
|
||
The following is deprecated in 6.0, and you should now use {kib} to get the URL for a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear "the following is deprecated" refers to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about:
The following POST URL paths were once supported but are now deprecated. If there are any problems with using these paths after upgrading Kibana's version, you should use {kib} to re-generate the POST URL for a particular report.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's much better.
This is awesome! |
Co-Authored-By: gchaps <[email protected]>
Co-Authored-By: gchaps <[email protected]>
Co-Authored-By: gchaps <[email protected]>
💔 Build Failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The section regarding CSV reports looks terrific! I'm on support dev ramp this week so I don't have time to review the rest of the PR unfortunately. Thank you for doing this, Tim!
… into docs/reporting-post-url
💚 Build Succeeded |
ba6b15c
to
6dced7c
Compare
I started making more changes about what can cause the |
* [Docs/Reporting] Improve docs on automating Reporting * Update docs/reporting/automating-report-generation.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * --wip-- [skip ci] * word change
* [Docs/Reporting] Improve docs on automating Reporting * Update docs/reporting/automating-report-generation.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * --wip-- [skip ci] * word change
* [Docs/Reporting] Improve docs on automating Reporting * Update docs/reporting/automating-report-generation.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * --wip-- [skip ci] * word change
💚 Build Succeeded |
…41179) * [Docs/Reporting] Improve docs on automating Reporting (#40931) * [Docs/Reporting] Improve docs on automating Reporting * Update docs/reporting/automating-report-generation.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * --wip-- [skip ci] * word change * [DOCS] Fixes broken reporting links (#41195)
…41180) * [Docs/Reporting] Improve docs on automating Reporting (#40931) * [Docs/Reporting] Improve docs on automating Reporting * Update docs/reporting/automating-report-generation.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * --wip-- [skip ci] * word change * [DOCS] Fixes broken reporting links (#41195)
…41181) * [Docs/Reporting] Improve docs on automating Reporting (#40931) * [Docs/Reporting] Improve docs on automating Reporting * Update docs/reporting/automating-report-generation.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * Update docs/reporting/script-example.asciidoc Co-Authored-By: gchaps <[email protected]> * --wip-- [skip ci] * word change * [DOCS] Fixes broken reporting links (#41195)
Thanks @tsullivan ! |
@tsullivan @lcawl does it make sense to backport this to 6.8 as well with minor changes (like |
Summary
Closes:
Addresses:
Improve documentation on how to automate Kibana Reporting, with Watcher and with a custom script.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Documentation was added for features that require explanation or tutorials[ ] Unit or functional tests were updated or added to match the most common scenarios[ ] This was checked for keyboard-only and screenreader accessibilityScreenshot