Skip to content

Commit 3be0473

Browse files
authored
updated doc (#11)
1 parent 79a08bd commit 3be0473

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

docs/IntelOwl/advanced_configuration.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,33 @@ This page includes details about some advanced features that Intel Owl provides
44

55
## ElasticSearch
66

7-
Right now only ElasticSearch v8 is supported.
8-
9-
### DSL
7+
_Available for version > 6.1.0_
108

11-
IntelOwl makes use of [django-elasticsearch-dsl](https://django-elasticsearch-dsl.readthedocs.io/en/latest/about.html) to index Job results into elasticsearch. The `save` and `delete` operations are auto-synced so you always have the latest data in ES.
9+
Right now only ElasticSearch v8 is supported.
1210

11+
### Configuration
1312
In the `env_file_app_template`, you'd see various elasticsearch related environment variables. The user should spin their own Elastic Search instance and configure these variables.
1413

15-
#### Kibana
16-
17-
Intel Owl provides a Kibana's "Saved Object" configuration (with example dashboard and visualizations). It can be downloaded from [here](https://github.com/intelowlproject/IntelOwl/blob/develop/configuration/Kibana-Saved-Conf.ndjson) and can be imported into Kibana by going to the "Saved Objects" panel (http://localhost:5601/app/management/kibana/objects).
14+
* ELASTIC_HOST: URL of the Elasticsearch instance.
15+
* ELASTIC_PASSWORD: (optional) Password of the "elastic" user. This can be empty in case of external services with credentials in the url.
16+
* ELASTICSEARCH_BI_ENABLED: Use the Business Intelligence feature.
17+
* ELASTICSEARCH_BI_HOST: URL of the Elasticsearch instance for the BI.
18+
* ELASTICSEARCH_BI_INDEX: Base path of the BI index.
1819

1920
#### Example Configuration
2021

21-
1. Setup [Elastic Search and Kibana](https://hub.docker.com/r/nshou/elasticsearch-kibana/) and say it is running in a docker service with name `elasticsearch` on port `9200` which is exposed to the shared docker network.
22-
(Alternatively, you can spin up a local Elastic Search instance, by appending `--elastic` to the `./start` command. Note that the local Elastic Search instance consumes large amount of memory, and hence having >=16GB is recommended.))
23-
2. In the `env_file_app`, we set `ELASTICSEARCH_DSL_ENABLED` to `True` and `ELASTICSEARCH_DSL_HOST` to `elasticsearch:9200`.
24-
3. Now start the docker containers and execute
22+
* Use external instance: In this case it's enough to set the `ELASTIC_HOST` with the URL of the external instance.
23+
* Use docker instance: With the `--elastic` option you can run a container based Elasticsearch instance. In this case the `ELASTIC_HOST` must be set to https://elasticsearch:9200. Configure also `ELASTIC_PASSWORD`.
2524

26-
```bash
27-
docker exec -ti intelowl_uwsgi python manage.py search_index --rebuild
28-
```
25+
### Data Search
26+
27+
Thanks to [django-elasticsearch-dsl](https://django-elasticsearch-dsl.readthedocs.io/en/latest/about.html) Job results are indexed into elasticsearch. The `save` and `delete` operations are auto-synced so you always have the latest data in ES.
2928

30-
This will build and populate all existing job objects into the `jobs` index.
29+
With [elasticsearch-py](https://elasticsearch-py.readthedocs.io/en/8.x/index.html) the AnalyzerReport, ConnectorReport and PivotReport objects are indexed into elasticsearch. In this way is possible to search data inside the report fields and many other via the UI. Each time IntelOwl is restarted the index template is updated and the every 5 minutes a task insert the reports in ElasticSearch.
3130

3231
### Business Intelligence
3332

34-
IntelOwl makes use of [elasticsearch-py](https://elasticsearch-py.readthedocs.io/en/8.x/index.html) to store data that can be used for Business Intelligence purpose.
33+
IntelOwl stores data that can be used for Business Intelligence purpose.
3534
Since plugin reports are deleted periodically, this feature allows to save indefinitely small amount of data to keep track of how analyzers perform and user usage.
3635
At the moment, the following information are sent to elastic:
3736

@@ -50,8 +49,6 @@ To activate this feature, it is necessary to set `ELASTICSEARCH_BI_ENABLED` to `
5049
or your elasticsearch server.
5150

5251
An [index template](https://github.com/intelowlproject/IntelOwl/blob/master/configuration/elastic_search_mappings/intel_owl_bi.json) is created after the first bulk submission of reports.
53-
If you want to use kibana to visualize your data/make dashboard, you must create an index pattern:
54-
Go to Kibana -> Discover -> Stack Management -> Index Patterns -> search for your index and use as time field `timestamp`
5552

5653
## Authentication options
5754

docs/IntelOwl/installation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ IntelOwl is composed of various different technologies, namely:
9393
- Uwsgi: Application Server
9494
- Daphne: Asgi Server for WebSockets
9595
- Elastic Search (_optional_): Auto-sync indexing of analysis' results.
96-
- Kibana (_optional_): GUI for Elastic Search. We provide a saved configuration with dashboards and visualizations.
9796
- Flower (_optional_): Celery Management Web Interface
9897

9998
All these components are managed via `docker compose`.

0 commit comments

Comments
 (0)