Questions tagged [siddhi]

Siddhi CEP is a lightweight, easy-to-use Open Source Complex Event Processing Engine (CEP) under Apache Software License v2.0. Siddhi CEP processes events which are triggered by various event sources and notifies appropriate complex events according to the user-specified queries.

Siddhi is a fully open-source, cloud-native, scalable, Streaming and Complex Event Processing System capable of building real-time analytics, data integration, notification and surveillance use cases.

Siddhi understands Streaming SQL queries in order to capture events from diverse data sources, process them, integrate with multiple services and data sources, and publish output to various endpoints in real-time.

411 questions
0
votes
1 answer

WSO2 stream health checks

Based on what I read on documentation and source code, WSO2CEP works as a passive software, so it only does something if a stream event arrives on it. So if I want to develop some "health check" on the stream, I need to implement it by myself. My…
0
votes
1 answer

Real-time rules editing and KafkaStreams

I have a requirement to allow "business" users to create and edit rules on data ingested from input streams. The rules must be business-friendly and there cannot be any development cycles. Here is an example of what I am thinking: "if…
Jason
  • 2,006
  • 3
  • 21
  • 36
0
votes
2 answers

How can I set priority on event flows in wso2cep?

Let's say, we have several event flows. Some of them loads reference data to hazelcast event tables and others are actual event processors. My objective is, while wso2cep server starts up, it will first run those event flows which are loading…
Obaid
  • 237
  • 2
  • 14
0
votes
1 answer

Siddhi How to track what's going on inside ExecutionPlanRuntime

Is there any way to track/log the inner execution of the Siddhi execution plan? Now I'm talking about vanilla Siddhi not WSO2 CEP. I didn't find any way how to turn it on. How do you debug your rules? Thanks.
yshadow
  • 77
  • 4
0
votes
1 answer

Siddhi I don't get any response from aggregate query

I have a simple query like this: define stream myEventStream (userId string, price int); define stream outputStream (avgPrice double, userId string); @info(name = 'aQuery') from myEventStream#window.time(5000) select avg(price) as avgPrice,…
yshadow
  • 77
  • 4
0
votes
1 answer

Siddhi CQEngine used within filter section

My incoming event contains userId property. I'd like to be able to read the parameter value according to userId from the CQEngine. Should I implement this as extension of FunctionExecutor and use it like: define stream cseEventStream (userId string,…
yshadow
  • 77
  • 4
0
votes
1 answer

Retrieve actual event object that triggered a positive response to a Siddhi query

In Siddhi, is it possible to retrieve the actual event that caused a positive response to a query. For example if i have an event A that causes a condition to be satisfied, I can, via the query projection make available attributes of event A that i…
0
votes
1 answer

WSO2 CEP - Single Event Table for Multiple Execution PLans

I have been exploring WSO2 CEP for last couple of days. I am considering a scenario where a single lookup table could be used in multiple execution plans. As far as I know, only way to store data all data is event table. My questions are: Can I…
Obaid
  • 237
  • 2
  • 14
0
votes
1 answer

Siddhi:Multi result per group when using window.cron

Siddhi 3.1.0, my siddhiql like this: define stream demo(key string, v1 int, v2 int, v3 int); from demo#window.cron(0/5 * * * * ?) select key,sum(v1) as v1,sum(v2) as v2,sum(v3) as v3 insert into outputStream I expect to get the result aggregations…
alphacome
  • 1
  • 2
0
votes
1 answer

WSO2 DAS-How much DAS can keep data in memory using Siddhi?

I am new to WSO2 DAS. According to the Document, it says that DAS can analyze data fast. I am trying to make example. My scenario is like below. @Import('in_test_stream:1.0.0') define stream inStream (a string, b string); *---> receive…
youngwoo
  • 11
  • 3
0
votes
1 answer

Negation for "every" statement? WSO2 CEP / Siddhi

Is there a simple way to negate the "every" statement? I am trying to implement a control tool that checks incoming purchase orders and requisitions. For each purchase order (PO) a requisition (REQ) has to be created before. The following code…
Wenzel
  • 5
  • 1
0
votes
1 answer

Siddhi QL : Adding a sub query

I am trying to achieve following siddhi sub query but unable to get the correct syntax as any such sample hasn't happened to hit me yet. select employee_id, (select count(*) from employees) from employees or something like select employee_id,…
aneela
  • 1,457
  • 3
  • 24
  • 45
0
votes
1 answer

Siddhi QL : In-Memory table outer join with Input Stream

I want to calculate % of protocols appearing in a network traffic in continuous way such that these % keeps on being updated with new events. A pie chart is generated and updated with the percentages. Since I need both new and previous data for the…
aneela
  • 1,457
  • 3
  • 24
  • 45
0
votes
1 answer

WSO2CEP : Stream/table definition with ID has not been defined in execution plan

I am using an in-memory table in execution plan but compiler is asking about its definition. The query is @Import('MAINInStream:1.0.0') define stream MAINInStream (ts string, uid string, id_orig_h string, id_orig_p int, id_resp_h string, id_resp_p…
aneela
  • 1,457
  • 3
  • 24
  • 45
0
votes
1 answer

WSO2CEP : Getting previous event value from stream in siddhi query

I have been using following siddhi query to get the events count per minute; ts as timestamp (string) and ftp_requests as count (int). from FTPInStream[command == 'USER'] select time:timestampInMilliseconds(time:dateAdd(str:replaceAll(ts,'T',' '),…
aneela
  • 1,457
  • 3
  • 24
  • 45