Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 093fd1d

Browse files
Merge pull request #6 from opendistro/master
merge
2 parents 2223c9c + c22a5b0 commit 093fd1d

39 files changed

+846
-147
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ This repository contains the documentation for Open Distro for Elasticsearch, a
5050
## New releases
5151

5252
1. Branch.
53-
1. Run a find and replace for `:x.y.z`, `-x.y.z`, and `_x.y.z` and replace with the new version string.
54-
1. Run a find for the underlying Elasticsearch version and update it as necessary (probably just `docs/install/deb.md`).
53+
1. Change the `odfe_version` and `es_version` variables in `_config.yml`.
5554
1. Start up a new cluster using the updated Docker Compose file in `docs/install/docker.md`.
5655
1. Update the version table in `version-history.md`.
5756

_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ baseurl: "/for-elasticsearch-docs" # the subpath of your site, e.g. /blog
2020
url: "https://opendistro.github.io" # the base hostname & protocol for your site, e.g. http://example.com
2121
permalink: pretty
2222

23+
odfe_version: 1.10.1
24+
es_version: 7.9.1
25+
2326
# Build settings
2427
markdown: kramdown
2528
remote_theme: pmarsceill/[email protected]
@@ -75,7 +78,7 @@ heading_anchors: false
7578
# Adds on-hover anchor links to h2-h6
7679
anchor_links: true
7780

78-
footer_content:
81+
footer_content:
7982

8083
plugins:
8184
- jekyll-remote-theme

docs/ad/cli.md

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
layout: default
3+
title: Anomaly Detection CLI
4+
parent: Anomaly Detection
5+
nav_order: 3
6+
---
7+
8+
# Anomaly Detection CLI
9+
10+
Anomaly detection CLI lets you call anomaly detection APIs with the `esad` command.
11+
12+
You can use the CLI to:
13+
14+
* Create detectors
15+
* Start, stop, and delete detectors
16+
* Create named profiles to connect to your cluster
17+
18+
Install the anomaly detection plugin to your Elasticsearch instance, run the CLI using macOS or Linux, and connect to any valid Elasticsearch end-point.
19+
20+
## Install
21+
22+
Launch your local Elasticsearch instance and make sure you have the anomaly detection plugin installed.
23+
24+
To install the anomaly detection CLI:
25+
26+
1. Download and extract [esad binaries](https://github.com/opendistro-for-elasticsearch/anomaly-detection/actions/runs/224422434).
27+
28+
2. Make the `esad` file executable:
29+
```bash
30+
chmod +x ./esad
31+
```
32+
33+
3. Move the binaries to your path for root users:
34+
```bash
35+
sudo mv ./esad /usr/local/bin/esad
36+
```
37+
Or add it to the current path:
38+
```bash
39+
export PATH=$PATH:$(pwd)
40+
```
41+
42+
4. Check if the CLI is installed:
43+
```bash
44+
esad --version
45+
```
46+
You should see the command prints of the `esad` version you installed.
47+
48+
49+
## Configure
50+
51+
Before using the CLI, you must configure your credentials.
52+
53+
To quickly get started, run the `esad profile create` command:
54+
```
55+
esad profile create
56+
57+
Enter profile's name: dev
58+
ES Anomaly Detection Endpoint: https://localhost:9200
59+
ES Anomaly Detection User: admin
60+
ES Anomaly Detection Password:
61+
```
62+
63+
Specify a unique profile name. The `create` command doesn’t allow duplicate profiles.
64+
65+
Alternatively, you can also use a configuration file:
66+
```yaml
67+
profiles:
68+
- endpoint: https://localhost:9200
69+
username: admin
70+
password: foobar
71+
name: default
72+
- endpoint: https://odfe-node1:9200
73+
username: admin
74+
password: foobar
75+
name: dev
76+
```
77+
78+
Save the file in `~/.esad/config.yaml`. If save you file to a different location, set the appropriate environment variable:
79+
```
80+
export ESAD_CONFIG_FILE=/path/to/config_file
81+
```
82+
83+
## Using the CLI
84+
85+
1. The complete syntax for an `esad` command is as follows:
86+
```
87+
esad <command> <subcommand> [flags and parameters]
88+
```
89+
90+
1. To start a detector:
91+
```
92+
esad start [detector-name-pattern]
93+
```
94+
95+
1. To see help documentation:
96+
```
97+
esad --help
98+
esad <command> --help
99+
esad <command> <subcommand> --help
100+
```

docs/ad/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ To use the anomaly detection plugin, your computer needs to have more than one C
2121
## Get started with Anomaly Detection
2222

2323
To get started, choose **Anomaly Detection** in Kibana.
24+
To first test with sample streaming data, choose **Sample Detectors** and try out one of the preconfigured detectors.
2425

2526
### Step 1: Create a detector
2627

0 commit comments

Comments
 (0)