You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect problematic spans and identify user agents that are potentially causing issues.
4
+
These jobs are applicable to data from Elastic APM RUM JavaScript Agents (where
5
+
`agent.name` is `js-base`).
6
+
7
+
### Create anomaly detection jobs and datafeeds
8
+
9
+
Copy the contents of the appropriate *.json file into the
10
+
[create anomaly detection jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ml-put-job.html) in the Kibana Dev Console. For example:
11
+
12
+
```
13
+
PUT _ml/anomaly_detectors/abnormal_span_durations_jsbase
14
+
{
15
+
...
16
+
}
17
+
```
18
+
19
+
*`abnormal_span_durations_jsbase.json`: Models the duration of spans. Detects spans that are taking longer than usual to process.
20
+
21
+
*`anomalous_error_rate_for_user_agents_jsbase.json`: Models the error rate of user agents. Detects user agents that are encountering errors at an above normal rate. This job can help detect browser compatibility issues.
22
+
23
+
*`decreased_throughput_jsbase.json`: Models the transaction rate of the application. Detects periods during which the application is processing fewer requests than normal.
24
+
25
+
*`high_count_by_user_agent_jsbase.json`: Models the request rate of user agents. Detects user agents that are making requests at a suspiciously high rate. This job is useful in identifying bots.
26
+
27
+
For more information about anomaly detection and running machine learning jobs,
28
+
refer to [Finding anomalies](https://www.elastic.co/guide/en/machine-learning/8.0/ml-ad-finding-anomalies.html).
"description": "APM JSBase: Detects user agents that are encountering errors at an above normal rate. This can help detect browser compatibility issues.",
6
+
"analysis_config": {
7
+
"bucket_span": "15m",
8
+
"detectors": [
9
+
{
10
+
"detector_description": "high error rate for user agent",
Detect abnormal traces, anomalous spans, and identify periods of decreased
4
+
throughput. These jobs are applicable to data from Elastic APM Node.js Agents
5
+
(where `agent.name` is `nodejs`).
6
+
7
+
### Create anomaly detection jobs and datafeeds
8
+
9
+
Copy the contents of the appropriate *.json file into the
10
+
[create anomaly detection jobs API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/ml-put-job.html) in the Kibana Dev Console. For example:
11
+
12
+
```
13
+
PUT _ml/anomaly_detectors/abnormal_span_durations_nodejs
14
+
{
15
+
...
16
+
}
17
+
```
18
+
19
+
*`abnormal_span_durations_nodejs.json`: Models the duration of spans. Detects spans that are taking longer than usual to process.
20
+
*`abnormal_trace_durations_nodejs.json`: Models the duration of trace transactions. Detects trace transactions that are processing slower than usual.
21
+
*`decreased_throughput_nodejs.json`: Models the transaction rate of the application.
22
+
Detects periods during which the application is processing fewer requests than normal.
23
+
24
+
25
+
For more information about anomaly detection and running machine learning jobs,
26
+
refer to [Finding anomalies](https://www.elastic.co/guide/en/machine-learning/8.0/ml-ad-finding-anomalies.html).
0 commit comments