Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding outputter for logstash udp input #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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