mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[Docs] Update nav instructions and sample data installation to accommodate for the solution views (#199163)](https://github.com/elastic/kibana/pull/199163) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"florent-leborgne","email":"florent.leborgne@elastic.co"},"sourceCommit":{"committedDate":"2024-11-08T10:10:32Z","message":"[Docs] Update nav instructions and sample data installation to accommodate for the solution views (#199163)\n\nThis PR:\r\n- updates navigation instructions to accommodate for the navigation\r\nchanges related to solution views.\r\n- updates instructions for adding sample data to rely on the\r\nintegrations page instead of the home page, that only exists with the\r\nclassic solution view\r\n- updates references to the home page to avoid confusing users using one\r\nof the new solution views\r\n\r\nCloses: https://github.com/elastic/platform-docs-team/issues/529\r\nCloses: https://github.com/elastic/platform-docs-team/issues/540","sha":"8e7fb7a77e2399e3e946bbba0462517fd7dad0f7","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","v9.0.0","docs","v8.16.0","backport:version","v8.17.0"],"title":"[Docs] Update nav instructions and sample data installation to accommodate for the solution views","number":199163,"url":"https://github.com/elastic/kibana/pull/199163","mergeCommit":{"message":"[Docs] Update nav instructions and sample data installation to accommodate for the solution views (#199163)\n\nThis PR:\r\n- updates navigation instructions to accommodate for the navigation\r\nchanges related to solution views.\r\n- updates instructions for adding sample data to rely on the\r\nintegrations page instead of the home page, that only exists with the\r\nclassic solution view\r\n- updates references to the home page to avoid confusing users using one\r\nof the new solution views\r\n\r\nCloses: https://github.com/elastic/platform-docs-team/issues/529\r\nCloses: https://github.com/elastic/platform-docs-team/issues/540","sha":"8e7fb7a77e2399e3e946bbba0462517fd7dad0f7"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199163","number":199163,"mergeCommit":{"message":"[Docs] Update nav instructions and sample data installation to accommodate for the solution views (#199163)\n\nThis PR:\r\n- updates navigation instructions to accommodate for the navigation\r\nchanges related to solution views.\r\n- updates instructions for adding sample data to rely on the\r\nintegrations page instead of the home page, that only exists with the\r\nclassic solution view\r\n- updates references to the home page to avoid confusing users using one\r\nof the new solution views\r\n\r\nCloses: https://github.com/elastic/platform-docs-team/issues/529\r\nCloses: https://github.com/elastic/platform-docs-team/issues/540","sha":"8e7fb7a77e2399e3e946bbba0462517fd7dad0f7"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>
197 lines
7.5 KiB
Text
197 lines
7.5 KiB
Text
[role="xpack"]
|
|
[[xpack-graph]]
|
|
= Graph
|
|
|
|
[partintro]
|
|
--
|
|
The {graph-features} enable you to discover how items in an
|
|
{es} index are related. You can explore the connections between
|
|
indexed terms and see which connections are the most meaningful. This can be
|
|
useful in a variety of applications, from fraud detection to recommendation
|
|
engines.
|
|
|
|
For example, graph exploration could help you uncover website vulnerabilities
|
|
that hackers are targeting so you can harden your website. Or, you might
|
|
provide graph-based personalized recommendations to your e-commerce customers.
|
|
|
|
The {graph-features} provide a simple, yet powerful {ref}/graph-explore-api.html[graph exploration API],
|
|
and an interactive graph visualization app for {kib}. Both work out of the
|
|
box with existing {es} indices—you don't need to store any
|
|
additional data to use these features.
|
|
|
|
[discrete]
|
|
[[how-graph-works]]
|
|
== How Graph works
|
|
The graph API provides an alternative way to extract and summarize information
|
|
about the documents and terms in your {es} index. A _graph_ is really
|
|
just a network of related items. In our case, this means a network of related
|
|
terms in the index.
|
|
|
|
The terms you want to include in the graph are called _vertices_. The
|
|
relationship between any two vertices is a _connection_. The connection
|
|
summarizes the documents that contain both vertices' terms.
|
|
|
|
[role="screenshot"]
|
|
image::user/graph/images/graph-vertices-connections.jpg["Graph components"]
|
|
|
|
NOTE: If you're into https://en.wikipedia.org/wiki/Graph_theory[graph theory],
|
|
you might know vertices and connections as _nodes_ and _edges_. They're the
|
|
same thing, we just want to use terminology that makes sense to people who
|
|
aren't graph geeks and avoid any confusion with the nodes in an {es}
|
|
cluster.
|
|
|
|
The graph vertices are simply the terms that you've already indexed. The
|
|
connections are derived on the fly using {es} aggregations. To
|
|
identify the most _meaningful_ connections, the graph API leverages
|
|
{es} relevance scoring. The same data structures and relevance ranking
|
|
tools built into {es} to support text searches enable the graph API to
|
|
separate useful signals from the noise that is typical of most connected data.
|
|
|
|
This foundation lets you easily answer questions like:
|
|
|
|
* What are the shared behaviors of people trying to hack my website?
|
|
* If users bought this type of gardening glove, what other products might they
|
|
be interested in?
|
|
* Which people on Stack Overflow have expertise in both Hadoop-related
|
|
technologies and Python-related tech?
|
|
|
|
But what about performance? The {es} aggregation framework
|
|
enables the graph API to quickly summarize millions of documents as a single
|
|
super-connection. Instead of retrieving every banking transaction between
|
|
accounts A and B, it derives a single connection that represents that
|
|
relationship. And, of course, this summarization process works across
|
|
multi-node clusters and scales with your {es} deployment.
|
|
Advanced options let you control how your data is sampled and summarized.
|
|
You can also set timeouts to prevent graph queries from adversely
|
|
affecting the cluster.
|
|
|
|
[float]
|
|
[[graph-connection]]
|
|
== Create a graph
|
|
|
|
Use *Graph* to reveal the relationships in your data.
|
|
|
|
. Go to *Graph*.
|
|
+
|
|
If you're new to {kib}, and don't yet have any data, follow the link to add sample data.
|
|
This example uses the {kib} sample web logs data set.
|
|
|
|
. Select the data source that you want to explore.
|
|
+
|
|
{kib} graphs the relationships between the top fields.
|
|
+
|
|
[role="screenshot"]
|
|
image::user/graph/images/graph-url-connections.png["URL connections"]
|
|
|
|
. Add more fields, or click an existing field to edit, disable or deselect it.
|
|
+
|
|
[role="screenshot"]
|
|
image::user/graph/images/graph-menu.png["menu for editing, disabling, or removing a field from the graph", width=75%]
|
|
|
|
|
|
. Enter a query to discover relationships between terms in the selected
|
|
fields.
|
|
+
|
|
For example,
|
|
to generate a graph of the successful requests to a
|
|
particular location, search for the `geo.src`
|
|
field. The weight of the connection between two vertices indicates how strongly they
|
|
are related.
|
|
|
|
. To view more information about a relationship, click any connection or vertex.
|
|
+
|
|
[role="screenshot"]
|
|
image::user/graph/images/graph-control-bar.png["Graph toolbar", width=50%]
|
|
|
|
. Use the graph toolbar to display additional connections:
|
|
+
|
|
* To display additional vertices that connect to your graph, click the expand icon
|
|
image:user/graph/images/graph-expand-button.png[Expand Selection].
|
|
* To display additional
|
|
connections between the displayed vertices, click the link icon
|
|
image:user/graph/images/graph-link-button.png[Add links to existing terms].
|
|
* To explore a particular area of the
|
|
graph, select the vertices you are interested in, and then click expand or link.
|
|
* To step back through your changes to the graph, click undo
|
|
image:user/graph/images/graph-undo-button.png[Undo] and redo
|
|
image:user/graph/images/graph-redo-button.png[Redo].
|
|
|
|
. To view more relationships in your data, submit additional queries.
|
|
|
|
. *Save* your graph.
|
|
|
|
[float]
|
|
[[graph-customize]]
|
|
== Customize your graph
|
|
|
|
Apply custom colors and icons to vertices, configure the number of vertices that
|
|
a search adds to the graph, block terms, and more.
|
|
|
|
[float]
|
|
[[style-vertex-properties]]
|
|
==== Style vertex properties
|
|
|
|
Each vertex has a color, icon, and label. To change
|
|
the color or icon of all vertices
|
|
of a certain field, click it's field, and then
|
|
select *Edit settings*.
|
|
|
|
To change the color and label of selected vertices,
|
|
click the style icon image:user/graph/images/graph-style-button.png[Style]
|
|
in the control bar.
|
|
|
|
|
|
[float]
|
|
[[edit-graph-settings]]
|
|
==== Tune the noise level
|
|
|
|
By default, *Graph* is configured to tune out noise in your data.
|
|
If this isn't a good fit for your data, open *Settings > Advanced settings*,
|
|
and then adjust the way *Graph* queries your data. You can tune the graph to show
|
|
only the results relevant to you and to improve performance.
|
|
For more information, see <<graph-troubleshooting, Graph troubleshooting>>.
|
|
|
|
You can configure the number of vertices that a search or
|
|
expand operation adds to the graph.
|
|
By default, only the five most relevant terms for any given field are added
|
|
at a time. This keeps the graph from overflowing. To increase this number, click
|
|
a field, select *Edit Settings*, and change *Terms per hop*.
|
|
|
|
[float]
|
|
[[graph-block-terms]]
|
|
==== Block terms from the graph
|
|
Documents that match a blocked term are not allowed in the graph.
|
|
To block a term, select its vertex and click
|
|
the block icon
|
|
image:user/graph/images/graph-block-button.png[Block selection]
|
|
in the graph toolbar.
|
|
For a list of blocked terms, open *Settings > Blocked terms*.
|
|
|
|
[float]
|
|
[[graph-drill-down]]
|
|
==== Drill down into raw documents
|
|
With drilldowns, you can display additional information about a
|
|
selected vertex in a new browser window. For example, you might
|
|
configure a drilldown URL to perform a web search for the selected vertex term.
|
|
|
|
Use the drilldown icon image:user/graph/images/graph-info-icon.png[Drilldown selection]
|
|
in the graph toolbar to show the drilldown buttons for the selected vertices.
|
|
To configure drilldowns, go to *Settings > Drilldowns*. See also
|
|
<<disable-drill-down, Disabling drilldown configuration>>.
|
|
|
|
[float]
|
|
[[graph-run-layout]]
|
|
==== Run and pause the layout
|
|
Graph uses a "force layout", where vertices behave like magnets,
|
|
pushing off of one another. By default, when you add a new vertex to
|
|
the graph, all vertices begin moving. In some cases, the movement might
|
|
go on for some time. To freeze the current vertex position,
|
|
click the pause icon
|
|
image:user/graph/images/graph-pause-button.png[Block selection]
|
|
in the graph toolbar.
|
|
|
|
--
|
|
|
|
include::configuring-graph.asciidoc[]
|
|
|
|
include::troubleshooting.asciidoc[]
|