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
Elastalert 0.2.4
TheHive 4.1.3-1 on docker with Cassandra 3.11
Problem Description
[error] o.t.s.u.Retry [000008f2|1e3928fc] uncaught error, not retrying
org.thp.scalligraph.CreateError: Observable already exists
at org.thp.thehive.services.ObservableSrv.create(ObservableSrv.scala:95)
at org.thp.thehive.services.AlertSrv.createObservable(AlertSrv.scala:125)
at org.thp.thehive.controllers.v0.AlertCtrl.$anonfun$createObservable$6(AlertCtrl.scala:341)
at org.thp.scalligraph.package$RichSeq.$anonfun$toTry$3(package.scala:17)
at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126)
at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122)
at scala.collection.immutable.List.foldLeft(List.scala:91)
at org.thp.scalligraph.package$RichSeq.toTry(package.scala:16)
at org.thp.thehive.controllers.v0.AlertCtrl.$anonfun$createObservable$1(AlertCtrl.scala:341)
at scala.util.Success.flatMap(Try.scala:251)
[error] o.t.s.m.Database [000008f2|1e3928fc] Exception raised, rollback (Observable already exists)
[warn] o.t.s.ErrorHandler [000008f2|1e3928fc] POST /thehive4/api/alert returned 400
[info] o.t.s.AccessLogFilter [000008f2|] 172.21.0.2 POST /thehive4/api/alert took 143ms and returned 400 60 bytes
Steps to Reproduce
This is my elastalert rule that triggers the error
alert:
debug
description: Suricata Level Alert
filter:
query:
query_string:
query: (event_type:"alert" AND alert.severity:"1")
index: suricata-events-*
category:
I also got the same error.
To fix it check that the artifacts you are sending to thehive are not repeated. To do this you have to check that the same artifact with 'dataType' and 'data' does not exist in the same alert.
In case you are sending files. Even if the 'data' field has a different value, you should check that none of the files have the same hash.
Request Type
Bug
Work Environment
Elastalert 0.2.4
TheHive 4.1.3-1 on docker with Cassandra 3.11
Problem Description
[error] o.t.s.u.Retry [000008f2|1e3928fc] uncaught error, not retrying
org.thp.scalligraph.CreateError: Observable already exists
at org.thp.thehive.services.ObservableSrv.create(ObservableSrv.scala:95)
at org.thp.thehive.services.AlertSrv.createObservable(AlertSrv.scala:125)
at org.thp.thehive.controllers.v0.AlertCtrl.$anonfun$createObservable$6(AlertCtrl.scala:341)
at org.thp.scalligraph.package$RichSeq.$anonfun$toTry$3(package.scala:17)
at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126)
at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122)
at scala.collection.immutable.List.foldLeft(List.scala:91)
at org.thp.scalligraph.package$RichSeq.toTry(package.scala:16)
at org.thp.thehive.controllers.v0.AlertCtrl.$anonfun$createObservable$1(AlertCtrl.scala:341)
at scala.util.Success.flatMap(Try.scala:251)
[error] o.t.s.m.Database [000008f2|1e3928fc] Exception raised, rollback (Observable already exists)
[warn] o.t.s.ErrorHandler [000008f2|1e3928fc] POST /thehive4/api/alert returned 400
[info] o.t.s.AccessLogFilter [000008f2|] 172.21.0.2 POST /thehive4/api/alert took 143ms and returned 400 60 bytes
Steps to Reproduce
This is my elastalert rule that triggers the error
alert:
description: Suricata Level Alert
filter:
query_string:
query: (event_type:"alert" AND alert.severity:"1")
index: suricata-events-*
category:
name: Suricata Level Alert
priority: 3
realert:
minutes: 0
title: Suricata Level Alert
type: any
aggregation:
minutes: 2
aggregation_key: alert.signature_id
summary_table_fiels:
alert_subject_args:
alert_subject: "{0}"
alert_text_type: alert_text_only
alert_text: "
Detection Suricata:
{0} \n\nSI:
{7} \n\nSource IP:
{1}:{5} \n\nDestination IP:
{2}:{6} \n\nSuricata Rule:
{4} \n\nLink Kibana:
https://XXX.XXX.XXX.XXX/kibana/app/kibana#/discover?_g=(filters:!())&_a=(columns:!(_source),filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'*:suricata-events-*',key:_id,negate:!f,params:(query:'{3}'),type:phrase,value:'{3}'),query:(match:(_id:(query:'{3}',type:phrase))))),index:'*:suricata-events-*',interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))) \n\n"alert_text_args:
alert: hivealerter
hive_alert_config_type: classic
hive_alert_config:
type: 'Suricata'
source: '{match[source]}'
severity: 3
tags: ['Suricata','{match[alert][category]}']
tlp: 2
status: 'New'
follow: True
hive_observable_data_mapping:
Complementary information
This is work with TheHive 3 but not with TheHive 4 .. Why ??
Thanks
The text was updated successfully, but these errors were encountered: