Hi Community,
I'm trying to generate a detection over time with Elastic SIEM. Giving more context, I'm indexing, through Logstash, data from an API rest, so every half an hour I receive new data. Mostly, is repeated data. So, what I'm trying to achieve is to compare the 30-minute data ago received, with the actual data, and check if there are new documents. Taking this into consideration, the detection should trigger if there are new documents in this time interval in the index.
For example, I received the following documents in an index called alerts-example
30 minutes ago:
{
{
"id":1,
"name": "first alert",
"description": "this is the fist alert"
},
{
"id":2,
"name": "second alert",
"description": "this is the second alert"
}
}
And then I receive the new data:
{
{
"id":1,
"name": "first alert",
"description": "this is the fist alert"
},
{
"id":2,
"name": "second alert",
"description": "this is the second alert"
},
{
"id":3,
"name": "third alert",
"description": "this is the third alert"
}
}
so it should detect the last document in the SIEM, in this case:
{
{
"id":3,
"name": "third alert",
"description": "this is the third alert"
}
}
I'm using Elastic 7.12. Is there any possible way or alternative to do this? I would be very grateful for some help.