benthos/examples

[benthos] example2 - elasticsearch output

justbagmeg 2022. 9. 4. 10:54

benthos.yaml

http:
  address:
  enabled: true
  root_path: /benthos
  debug_endpoints: true

input:
  resource: input_src

pipeline:
  processors: []

output:
  resource: output_src

input_resources:
  - label: input_src
    http_server:
      address: 0.0.0.0:4197
      path: /post
      allowed_verbs:
        - POST


output_resources:
  - label: output_src
    elasticsearch:
      urls:
        - http://127.0.0.1:9200
      index: my_index
      id: ${!count("elastic_ids")}-${!timestamp_unix()}

'benthos > examples' 카테고리의 다른 글

[benthos] example1 (POST input, stdout output)  (0) 2022.08.27