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
Copy file name to clipboardExpand all lines: docs/IntelOwl/advanced_configuration.md
+15-18Lines changed: 15 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,34 +4,33 @@ This page includes details about some advanced features that Intel Owl provides
4
4
5
5
## ElasticSearch
6
6
7
-
Right now only ElasticSearch v8 is supported.
8
-
9
-
### DSL
7
+
_Available for version > 6.1.0_
10
8
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.
12
10
11
+
### Configuration
13
12
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.
14
13
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.
18
19
19
20
#### Example Configuration
20
21
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`.
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.
29
28
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.
31
30
32
31
### Business Intelligence
33
32
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.
35
34
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.
36
35
At the moment, the following information are sent to elastic:
37
36
@@ -50,8 +49,6 @@ To activate this feature, it is necessary to set `ELASTICSEARCH_BI_ENABLED` to `
50
49
or your elasticsearch server.
51
50
52
51
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`
0 commit comments