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

Transport section in config file #142

Open
scalp42 opened this issue Jul 2, 2020 · 1 comment
Open

Transport section in config file #142

scalp42 opened this issue Jul 2, 2020 · 1 comment

Comments

@scalp42
Copy link
Contributor

scalp42 commented Jul 2, 2020

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!

@evandam
Copy link

evandam commented Jul 7, 2020

@yyuu I'm seeing the same issue too. Is there any workaround we could use?

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

No branches or pull requests

2 participants