Skip to content
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] Add documentation for new Analysis tab in logs app #49165

Closed
wants to merge 5 commits into from

Conversation

Titch990
Copy link
Contributor

@Titch990 Titch990 commented Oct 24, 2019

Implements #45645

Adds new docs page "Detecting and inspecting log anomalies" (see http://kibana_49165.docs-preview.app.elstc.co/guide/en/kibana/master/xpack-logs-analysis-page.html), and related linking text near the bottom of the main Logs app page "Using the Logs app" (see http://kibana_49165.docs-preview.app.elstc.co/guide/en/kibana/master/xpack-logs-using.html).

@Titch990 Titch990 added Team:Docs Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services release_note:skip Skip the PR/issue when compiling release notes v7.5.0 v7.6.0 labels Oct 24, 2019
@Titch990 Titch990 self-assigned this Oct 24, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-docs (Team:Docs)

@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@Titch990 Titch990 changed the title [DOCS] add documentation for new Analysis tab in logs app [DOCS] Add documentation for new Analysis tab in logs app Oct 24, 2019
@Titch990
Copy link
Contributor Author

@elasticmachine, run elasticsearch-ci/docs

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Titch990 Titch990 marked this pull request as ready for review October 24, 2019 12:44
Copy link
Contributor

@KOTungseth KOTungseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a solid start to this PR. A few things to consider:

  • You can tighten up a lot of your content by switching to active voice.
  • Make sure you're using consistent terms. With the Kibana docs, we use the UI terms, which can get redundant, but helps with navigating the UI. Especially for first time users.

If you have any questions, please reach out.


beta::[]

The *Analysis* page in the Logs app allows you to automatically detect some kinds of log anomalies using machine learning.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

page > UI

Since this is in the Logs section, you don't need to say in the Logs app.

machine learning > Machine Learning

How about this for an into sentence:

To help you spot suspicious behavior, the Analysis UI enables you to inspect log entries and anomalies using Machine Learning. Anomalies highlight periods (of time?) where the log rate is outside of the (specified?) limits.


The *Analysis* page in the Logs app allows you to automatically detect some kinds of log anomalies using machine learning.

The analysis automatically highlights periods where the log rate is outside the expected limits and therefore may be anomalous.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

periods of what? Time?

What makes them expected limits? Are they specified somewhere?

Copy link
Contributor

@Kerry350 Kerry350 Nov 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is periods of time.

They are expected limits based on the model defined by the machine learning module, and the "learning" it has done on the datasets to date. Therefore these values will always differ based on the individual dataset. A rate of 10 might be anomalous in one dataset, but not anomalous in another. The ML model will adapt itself over time as it learns from more data.

It may be better to use the word "bounds" here over "limit" as that's the ML terminology.

The *Analysis* page in the Logs app allows you to automatically detect some kinds of log anomalies using machine learning.

The analysis automatically highlights periods where the log rate is outside the expected limits and therefore may be anomalous.
This helps you to spot suspicious behavior without significant human intervention.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like this bit. I would move it to the top.

The *Analysis* page in the Logs app allows you to automatically detect some kinds of log anomalies using machine learning.

The analysis automatically highlights periods where the log rate is outside the expected limits and therefore may be anomalous.
This helps you to spot suspicious behavior without significant human intervention.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

significant human intervention is interesting. Maybe unpack that some more?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, this would stop users having to manually sample their log data, calculate the rates, and decide whether those rates are "normal".


The analysis automatically highlights periods where the log rate is outside the expected limits and therefore may be anomalous.
This helps you to spot suspicious behavior without significant human intervention.
You can use this information as a basis for further investigations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

further investigations into what?

Copy link
Contributor

@Kerry350 Kerry350 Nov 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be various things:

  • A spike in the log rate could denote a DDoS attack. This may lead to investigating things like IP addresses from incoming requests.
  • A significant drop in the log rate could suggest that some some piece of infrastructure has stopped responding, and thus we're serving less requests.

These are just examples, mileage will vary between datasets and anomalies.

Also want to clarify that whilst the backing model which has been trained will have a lower and upper bound for what it considers "normal" and non-anomalous, it doesn't mean anomalous values will always land within these bounds. The model could have upper as 50 and lower as 10, and 30 could still, in the right circumstances, flag as anomalous if something else about the rate is still considered anomalous.

If you have a license that includes the machine learning features, you can click *Analysis* to <<xpack-logs-analysis-page, use machine learning to detect and inspect anomalies>> in your log data.

[float]
=== Other actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there something more descriptive we can use here besides Other actions?

docs/logs/analysis-tab.asciidoc Show resolved Hide resolved
docs/logs/analysis-tab.asciidoc Show resolved Hide resolved
docs/logs/analysis-tab.asciidoc Show resolved Hide resolved
docs/logs/analysis-tab.asciidoc Show resolved Hide resolved

beta::[]

The *Analysis* page in the Logs app allows you to automatically detect some kinds of log anomalies using machine learning.
Copy link
Contributor

@lcawl lcawl Oct 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's worth stating right off the bat that this page isn't applicable if you don't have the appropriate ML features available. For example:

Suggested change
The *Analysis* page in the Logs app allows you to automatically detect some kinds of log anomalies using machine learning.
If the {ml} {anomaly-detect} features are enabled, you can use
the *Analysis* page in the Logs app to automatically detect some kinds of log anomalies.

@Titch990
Copy link
Contributor Author

@KOTungseth Thanks for the extremely detailed review. I've responded to the individual points.

Can you give me an example of where you suggest I should switch to active voice? The only passives I can see are for things the system does, for example "Where a time period is flagged as anomalous . . . ". I think "Where the system flags a time period as anomalous . . . " is more clunky, and can get repetitive.

I have tried to use consistent terms, but if you spot anything I've missed, please let me know.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@bmorelli25
Copy link
Member

Closing as it's probably easier to start from scratch.

@bmorelli25 bmorelli25 closed this Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Docs Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.5.0 v7.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants