Socket
Book a DemoInstallSign in
Socket

fluent-plugin-udp_forward

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-plugin-udp_forward

2.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Gem Version

fluent-plugin-udp_forward

Overview

This fluent input plugin allows you to collect incoming events over UDP. While fluentd's default UDP Input plugin supports adding a tag to the received message statically by configuration, it does not support extracting a tag from the received message. This plugin supports extracting the tag from incoming events over UDP. UDP events should be in JSON format.

Installation

gem install fluent-plugin-udp_forward

Configuration

<source>
    @type udp_forward
    bind "localhost"          
    port 5160
    tag_key "tag"
    message_key "data"
 </source>

Optional parameters are as follows:

  • bind: The bind address to listen to. Default is "0.0.0.0
  • port: The port to listen to. Default is 5160
  • tag_key: Name of tag key. Default is "tag"
  • message_key: Name of message key. Default is "data"

Example

If your fluentd source configuration is the same as above and you submitting an event like this:

 require "socket"
 require 'json'
 
 my_hash = {tag: 'my_tag', data:{ "level": "INFO", "time": Time.now, "message": "Yayyy!!" }}
 UDPSocket.new.send(JSON.generate(my_hash), 0, 'localhost', 5160) 

The output will be:

2019-02-26 11:11:03.499991000 +0000 my_tag: {"level":"INFO","time":"2019-02-26 11:11:03 +0000","message":"Yayyy!!"}

Requirements

fluent-plugin-udp_forwardfluentd
>= 1.0.0>= v0.12.0 < 2

Contributing

Copyright (c) 2019 - tombola.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 04 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.