Skip to content

Conversation

@marcelog
Copy link

Hey guys,

This pull adds a new outputter to use the logstash udp input. The code is based on the UDPOutputter. Here's a sample yml config for it:

    - type: LogstashUDPOutputter
      name: logstashUDP
      level: WARN
      date_pattern: '%Y%m%d'
      trunc: 'false'
      hostname: '127.0.0.1'
      port: 10001
      log_type: 'this_will_show_up_in_logstash'
      formatter:
        date_pattern: '%y%m%d %H:%M:%S'
        pattern: '%m'
        type: PatternFormatter

And a sample config for logstash:

   udp {
    codec => json
    port => 10001
    queue_size => 2
    workers => 2
    type => myAppType
  }

Does this sound like a desirable feature for the project? Will appreciate any comments on the implementation.

Thanks in advance! Cheers,

@marcelog marcelog force-pushed the marcelog_logstashudp_outputter branch from 51fe718 to 9ad74d7 Compare September 21, 2014 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant