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
1
vote
1 answer

Is it posible to remove enclosing element using json mapping in siddhi?

I got a working code of siddhi and i want to know if its posible to output the events using a json format without an enclosing element. I tried it putting a null enclosing.element and $. , but none of them seems to work. @sink(type = 'file',…
Sasukeuni
  • 17
  • 5
1
vote
0 answers

Siddhi CEP pattern for every event with occurrences

I am writing a pattern in Siddhi CEP like - "from every e1=inputStream[(e1.name == 'A')]<2> -> e2=inputStream[(e2.name == 'B')<2:> within 10 seconds select 'rule1' as ruleId insert into outputStream" The above query only executes once when I pass…
1
vote
1 answer

Accessing individual events in a sliding window in Siddhi

I am new to Siddhi and CEP. I want to get the first and the last events in a current sliding window. I have tried: from WeightStream#window.length(4) as W select W[1].weight as weight1, W[last].weight as weightLast insert into…
1
vote
1 answer

The tutorials given in the wso2 stream processor do not work as expected, particularly Making Real Time Predictions

I'm trying to replicate the "Making Real Time Predictions" tutorial given in the wso2 stream processor documentation, which predicts whether the shipment will meet the requirement given the temperature and density I'm using the pre-trained PMML file…
1
vote
1 answer

How do i inject the original file name (input file) into the defined stream when using siddhi-io-csv extension in siddhi when using WSO2SP

In WSO2SP there is a way to use a CSV file to generate events. e.g. the ReceiveEventsFromFile sample. In this sample i can drop a file into a folder and the extension will read the file and produce events. When i define the input stream i would…
1
vote
1 answer

How do I process an incoming event and based on a field in the event, write into different streams using wso2?

I am trying to use a single stream, process the incoming json format and write into different streams based on an attribute in the event. For example if the input stream consists of something like this: { "event_type" : "temperature", "json" : { …
1
vote
2 answers

Required bundle manifest headers do not exist wso2

I am using wso2 SP 4.3.0 and i want extend strem processing with custom function. I have follow this documentation: https://docs.wso2.com/display/SP430/Writing+Custom+Siddhi+Extensions#WritingCustomSiddhiExtensions-siddhi-script so i created maven…
Davide Boldrin
  • 204
  • 3
  • 15
1
vote
0 answers

How to connect WSO2 app with Azure Event Hub using SASL?

I can't connect to a Kafka source (Azure Event Hub as Kafka) because it requires SASL authentication. WSO2sp/Siddhi can read extra configurations on optional.configuration parameter; I'm not sure I had set the proper values over there. I have tried…
1
vote
1 answer

How to make a stream query with something like a timer?

I'm making a siddhi app. What I need is a query to get an event from a stream if no event with the same ID arrives in certain time. This is for a SiddhiApp with WSO2 stream processor. lets say a json arrives at time 0s { "id": "1566", …
Jorge Monroy
  • 408
  • 1
  • 5
  • 16
1
vote
0 answers

WSO2 Siddhi standalone library - No extension exist for :timeBatch

I´m trying to implement a wso2 siddhi library standalone solution into an osgi environment. Apart from using windows, it works so far. When I define a stream or a window for aggregations, I get the error message "No extension exist for :timeBatch".…
Basti
  • 15
  • 4
1
vote
1 answer

Invalid format of event in WSO2

I am trying to deploy business rules via the API of wso2. I have tested the siddhi App on the editor , it works correctly. When I deploy it in the dashboard. When sending the data to the url of input, I get this error: ERROR…
Jorge Monroy
  • 408
  • 1
  • 5
  • 16
1
vote
1 answer

Is possible to make the options of properties dynamic in business template editor of WSO2?

Context: in Wso2, to make Siddhi apps dynamic, one uses business rules. This business rules are created from templates like this: Rule templates have some properties for each attribute. In this properties there are options to make a list of…
Jorge Monroy
  • 408
  • 1
  • 5
  • 16
1
vote
1 answer

WSO2 Siddhi Complex Event Processor question

Environment: WSO2 Stream Processor 4.3.0 Let's say I have two very simple streams: Stream where newly created requests (unfulfilled) are being delivered in real time (t1) RequestStream(requestId) Stream where requestsIds appear when the request has…
Alexandre Juma
  • 3,128
  • 1
  • 20
  • 46
1
vote
1 answer

Deploy and run custom siddhi application

I am running WSO2 Stream Processor 4.3.0, I have created a siddhi application and I want to deploy and run this application on a worker in production. I ran WSO2 SP worker profile with "wso2-sp" type, in deployment.yml file. How can I ask the worker…
Reza Ameri
  • 1,803
  • 3
  • 24
  • 32
1
vote
1 answer

Filtering on prior events in Siddhi

Is it possible to detect if a prior event happened before a current one in Siddhi? I am trying to do something like "send alert if Y happened after X". I've gotten the inverse of that working (send alert if Y happened without X ever happening) with…
wearebob
  • 376
  • 2
  • 15