Questions tagged [benthos]

Benthos is an open source data streaming engine written entirely in Go and packaged as a static single-binary command line tool. Through an embedded DSL called Bloblang, it allows users to express complex transformations of structured data, such as schema migrations and validations. Its Go API allows users to import Benthos as a library and extend it through custom plugins.

Benthos is a stateless data streaming engine which implements transaction based resiliency with back pressure, so when connecting to at-least-once sources and sinks it's able to guarantee at-least-once delivery without needing to persist messages during transit.

Data transformations can be expressed using a high-level DSL called Bloblang, or blobl for short, which is a language designed for mapping data of a wide variety of forms. It's a safe, fast, and powerful way to perform document mapping within Benthos. It also has a Go API for writing your own functions and methods as plugins.

Benthos Studio is an application that provides visual editing capabilities to the Benthos stream processor. You can also use it to test your pipelines using mocked input.

11 questions
2
votes
1 answer

How can we generate multiple output file in benthos?

Input Data: { "name": "Coffee", "price": "$1.00" } { "name": "Tea", "price": "$2.00" } { "name": "Coke", "price": "$3.00" } { "name": "Water", "price": "$4.00" } extension.yaml input: label: "" file: paths: [./input/*] codec: lines …
Yash Chauhan
  • 174
  • 13
2
votes
1 answer

How can I read and decode AVRO messages from Kafka along with their associated kafka key using Benthos?

I am using Benthos to read AVRO-encoded messages from Kafka which have the kafka_key metadata field set to also contain an AVRO-encoded payload. The schemas of these AVRO-encoded payloads are stored in Schema Registry and Benthos has a…
Mihai Todor
  • 8,014
  • 9
  • 49
  • 86
1
vote
1 answer

benthos read beautified json

I have a simple json { "years": [ "2018", "2019" ] } that I want to read with Benthos. However as this is a "beautified" json, Benthos reads each line as message. How can one read this multiline json with benthos and compactify it for further…
nerdizzle
  • 424
  • 4
  • 17
1
vote
1 answer

How to use group_by_value to create batches in benthos

I have been trying to understand how to batch things in benthos but am a bit confused on how to do it.. Take this example: input: generate: interval: "" count: 40 mapping: | root = count("test") pipeline: processors: -…
pimguilherme
  • 1,050
  • 11
  • 15
1
vote
2 answers

Benthos kafka consumer with ssl authentication

I am using benthos (https://www.benthos.dev/) to consume messages from a Kafka topic. Testing my Benthos configuration with a local kafka works fine, but when I test the same configuration using a production Kafka deployment, with SSL…
Esteban Collado
  • 1,840
  • 1
  • 14
  • 15
0
votes
1 answer

Benthos - How do you reference keywords from one processor to another processor in the same pipeline?

I am new to Benthos and trying to learn how it works. I am trying to input a JSON file with some key:value pairs, add a new field and POST that new field to get a response. pipeline: processors: - mapping: | root.id = this.id …
0
votes
1 answer

How do I use a json tag as a parameter in benthos

input: generate: mapping: root = {"id":48554} pipeline: processors: - http: url: https://example.com/**use_id_here_from_root** verb: GET retries: 5 timeout:…
0
votes
1 answer

Benthos grok log parse

So I have this log and I was trying to parse it using benthos grok. What I need to do is return json 5 elements: • Timestamp • Connection direction (inbound/outbound) • Source IP • Destination IP • Source Port in json format of this log: <134>1…
0
votes
1 answer

Is there any way where we can generate output file based on the input data in benthos?

For example: Input Data: {"date":"03-11-22", "message":"This is message"}, {"date":"03-30-22", "message":"This is message"}, {"date":"04-03-22", "message":"This is message"}, {"date":"04-15-22", "message":"This is message"}, {"date":"08-18-22",…
Yash Chauhan
  • 174
  • 13
0
votes
1 answer

Benthos: How to get variable from processor to input?

i'm new to benthos, hope following configuration to work, i looked at the benthos doc and tried to google, but didn't find an answer, any answer is greatly appreciated actually, the sign will be the calculated value, but now I'm stuck on the first…
Oliver
  • 3
  • 2
0
votes
0 answers

kafka: error while consuming TestTopic/0: kafka server: Request exceeded the user-specified time limit in the request

Helo, "kafka: error while consuming TestTopic/0: kafka server: Request exceeded the user-specified time limit in the request." I am getting the above error intermittently while consuming from kafka broker(i.e kafka) OR GCP Pub Sub(i.e gcp_pubsub)…