Déploiement Elastalert et configuration des index
... / Déploiement Elastalert et...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Déploiement Elastalert et configuration des index

by
LoganM1
Created on 2020-06-12 15:36:50 (edited on 2024-09-04 12:40:13) in Erreur connexion SSL

Bonjour,

J'essaie d'utiliser Elastalert pour remplacer la fonctionnalité basiques d'alerting proposé par LDP (notification uniquement du propriétaire).

La solution Elasalert se charge normalement de la création des index et de leur configuration. Cependant, la création des index est à la charge d'OVH (possible via l'interface du service).

Il faut donc créer les index à la main avec OVH puis appliquer les mappings à la main. Cependant, je n'arrive pas à les appliquer.

J'ai tenté :

```
PUT https://gra3.logs.ovh.com:9200/xxx-alert/_mapping/_doc
{
"numeric_detection": true,
"date_detection": false,
"dynamic_templates": [
{
"strings_as_keyword": {
"mapping": {
"ignore_above": 1024,
"type": "keyword"
},
"match_mapping_type": "string"
}
}
],
"properties": {
"rule_name": {
"type": "keyword"
},
"@timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"alert_time": {
"type": "date",
"format": "dateOptionalTime"
},
"match_time": {
"type": "date",
"format": "dateOptionalTime"
},
"match_body": {
"type": "object"
},
"aggregate_id": {
"type": "keyword"
}
}
}
```

Mais j'ai une erreur en retour :

```json
{
"error": {
"root_cause": [
{
"type": "forbidden_exception",
"reason": "Action 'indices:admin/mapping/put' is forbidden due to [DEFAULT]"
}
],
"type": "forbidden_exception",
"reason": "Action 'indices:admin/mapping/put' is forbidden due to [DEFAULT]"
},
"status": 403
}
```

N'étant pas un expert ElastiSearch, je m'en remet à la communauté.


Replies are currently disabled for this question.