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

How to assign a value using a siddhi query?

I need to assign a value to a particular attribute in a stream by checking a condition. How do I do it? e.g if a person's name is 'John' and I need to modify his name into 'Peter' and insert into another stream, how do I do it? from myStream…
DesirePRG
  • 6,122
  • 15
  • 69
  • 114
0
votes
1 answer

Is Siddhi unable to group by more than one variable?

I have the following stream definition: String eventStreamDefinition = "define stream cdrEventStream (nodeId string, phone string, timeStamp long, isOutgoingCall bool); "; And the query: String query = "@info(name = 'query1') from…
Johnny
  • 7,073
  • 9
  • 46
  • 72
0
votes
1 answer

Distributed cache with WSO2 cep engine

General info: Using tomcat server7.0 with JDK1.7 I have two servers, and I'm using Hazlecat version 3.0 for caching. My problem is with CEP engine. Using WSO2 engine I added the following to my pom.xml:
naama
  • 1
  • 2
0
votes
1 answer

Exception defining tables in execution plans of WSO2 CEP 4.0.0

I am trying to migrate from WSO2 CEP 3.1.0 to WSO2 CEP 4.0.0. I have converted an existing execution plan to the new SiddhiQL syntax: @Plan:name('occurredFailure') @Import('responseTimeStream:1.0.0') define stream responseTimeStream (service…
0
votes
2 answers

Why do all events come in bulk rather than one by one?

I'm testing a very simple CEP query with an externally timed window. The query is define stream LoginEvents (timeStamp long, ip string, phone string); @info(name = 'query1') from LoginEvents#window.externalTime(timeStamp,5 sec) select timeStamp, ip …
Johnny
  • 7,073
  • 9
  • 46
  • 72
0
votes
3 answers

How can I add a dependency on Siddhi CEP to my pom.xml file?

Does anyone know how to add a dependency on the latest version of Siddhi CEP (preferably without cloning the source)? I tried (from the Github repo): org.wso2.siddhi siddhi
Johnny
  • 7,073
  • 9
  • 46
  • 72
0
votes
0 answers

How can I tell which part of the code hasn't terminated?

I'm running the following code which is copied from the Siddhi samples. Upon reaching the last line of the code Eclipse indicates that something is still running. How can I tell what it is and shut it down? Note that I'm more interested in general…
Johnny
  • 7,073
  • 9
  • 46
  • 72
0
votes
1 answer

WSO2 CEP SIDDHI LANGUAGE boolean type

Is there an allowed boolean type to be used in siddhi query language when defining streams ? By looking at the language model of Siddhi versión 310 "https://docs.wso2.com/display/CEP310/Language+Model" it looks like there is no support for stream…
0
votes
1 answer

Join with update/delete WSO2 CEP Event Table Using Siddhi

I have a userStream having name,address,status I want to store this details in UserDetailsTable (In memory table) Result of UserDetailsTable is below "Jose", "address1","false" "Rockey","address2","false" "sibin", "address3","false" I have…
sarath
  • 767
  • 12
  • 19
0
votes
1 answer

How to do an Upsert operation using WSO2 CEP and Siddhi Query Language

I have an userStream having username,ipaddress,timestamp I want to store this details in UserDetailsTable (In memory table) and need to do an upsert. How could I able to update the row if username and ipaddress are same and insert otherwise as a…
0
votes
1 answer

How to get parameters by name in a Siddhi extension custom function of WSO2 CEP?

When I pass params into my Custom Function and I want to get it, I need to do it by that: @Override protected Object process(Object obj) { param1 = obj[0]; param2 = obj[1]; } but when I have 30 params I need to repeat this process almost 30…
Kacu
  • 438
  • 4
  • 23
0
votes
1 answer

Can we extend Siddhi CEP java library with Siddhi High Available feature

I am using Sidhhi CEP as Java library in my project . Now i need to analyse my data with High available system (Similar to Esper HA). I have done little bit study about Siddhi High…
0
votes
1 answer

Get events within first 10 minutes

I'm new to the Siddhi language. I need to get events only within the first 10 minutes of an event stream. Is there a way to do this task? Here is the defined input stream. define stream InputDataStream (timestamp long, obd2_MAF float,…
Shashika
  • 1,606
  • 6
  • 28
  • 47
0
votes
1 answer

Siddhi Query for Geofence Entry Detection

I am trying to get Siddhi to fire events whenever it detects a flight has entered a Geofence, but can't quite figure out the correct query to do it. I have the following input stream definition: define stream GeofenceMulticasterConsumerStream (…
foyst
  • 1
0
votes
1 answer

WSO2 CEP custom function doesn't work as aggregate function

WSO2 CEP custom function doesn't work as aggregate function, instead it operates on each row of data. Lets say we have value1 and value2 in input stream. host:A, Value1:1, value2:10 host:A, Value1:2, value2:20 host:A, Value1:3, value2:30 host:A,…
Anshul Gupta
  • 490
  • 4
  • 8