Skip to content

Transport section in config file #142

@scalp42

Description

@scalp42

Hi @yyuu

I'm trying to use the transport directive and modify the message_length_limit for udp:

<transport udp>
  message_length_limit 4096
</transport>

Unfortunately the following Chef code won't work:

td_agent_source 'syslog_docker_input' do
  type 'syslog'
  parameters(
    port: 5140,
    protocol_type: 'udp',
    parse: {
      message_format: 'rfc5424',
    },
    'transport udp' => {
      message_length_limit: 4096,
    },
    '@log_level': 'info'
  )
end

The end result config is messed up as it tries to add transport udp:

<source>
  @type syslog
  port 5140
  protocol_type udp
  <parse>
    message_format rfc5424
  </parse>
  <transport udp>
    message_length_limit 1000000
  </transport udp>   # <=== This is wrong

Any clues how to work around this?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions