-
Notifications
You must be signed in to change notification settings - Fork 191
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
Interactive investigation guides #2821
Conversation
Documentation previews: |
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.
Looks great! Just a couple of small suggestions, thanks for pulling this together. 🌟
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
Co-authored-by: Janeen Mikell Roberts <[email protected]>
Each item in `providers` is defined by these attributes: | ||
|
||
* `field`: The name of a field to query. | ||
* `value`: The value to search for. Either a hard-coded literal value, or the name of the field on the alert whose value you want to use as a query parameter. |
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.
We should mention here that any value that contains a \ character need to be double escaped, i.e. a windows file path would be "C:\\Windows\\System32". This is a bit gross without the form builder doing this for them, but won't be an issue next release. The reason for this is that JSON.stringify/JSON.parse is ultimately used twice, once on the entire markdown snippet, and once on the provider part of the snippet.
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.
ha the github markdown behaves similarly, that was supposed to be 4 slashes delineating each part of the path, so I think it ends up being 8. "C:\\\\Windows\\\\System32"
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.
Thanks @kqualters-elastic! Are there any other special characters that need to be escaped, either double \\
or single \
?
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.
Ya I believe all the other JSON special characters as well:
\b Backspace (ascii code 08)
\f Form feed (ascii code 0C)
\n New line
\r Carriage return
\t Tab
" Double quote
\ Backslash character
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.
@kqualters-elastic I added a note to explain escape characters, based on our Slack discussion. It's intentionally a little more general, pointing to the error icon to help users troubleshoot syntax errors. Feel free to edit as needed, once you've confirmed how exactly the characters work.
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.
This is awesome, very clear and concise!
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.
Really helpful and thorough topic! Great idea to include example syntax as well. I left a handful of suggestions for your consideration and a couple of questions too. Good job!
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
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.
Looks good to me, just left one minor suggestion which you may choose to ignore!
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
docs/experimental-features/investigation-guide-actions.asciidoc
Outdated
Show resolved
Hide resolved
Co-authored-by: nastasha-solomon <[email protected]>
* Incomplete first draft * Expands first draft, still in progress * Complete first draft * Correct screenshot, some edits * Apply line edits Co-authored-by: Janeen Mikell Roberts <[email protected]> * Revision based on Janeen's comments * Apply suggestions from review Co-authored-by: nastasha-solomon <[email protected]> * Add draft statement about escape characters * Edits from Paul, et al Co-authored-by: Janeen Mikell Roberts <[email protected]> Co-authored-by: nastasha-solomon <[email protected]> (cherry picked from commit 48d59b7)
* Incomplete first draft * Expands first draft, still in progress * Complete first draft * Correct screenshot, some edits * Apply line edits Co-authored-by: Janeen Mikell Roberts <[email protected]> * Revision based on Janeen's comments * Apply suggestions from review Co-authored-by: nastasha-solomon <[email protected]> * Add draft statement about escape characters * Edits from Paul, et al Co-authored-by: Janeen Mikell Roberts <[email protected]> Co-authored-by: nastasha-solomon <[email protected]> (cherry picked from commit 48d59b7) Co-authored-by: Joe Peeples <[email protected]>
Resolves #2696.
Preview: Interactive investigation guides