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

tcp input buffer is too small for vcenter syslog #255

Closed
jsirianni opened this issue Feb 26, 2021 · 0 comments · Fixed by #256
Closed

tcp input buffer is too small for vcenter syslog #255

jsirianni opened this issue Feb 26, 2021 · 0 comments · Fixed by #256
Assignees
Labels
bug Something isn't working

Comments

@jsirianni
Copy link
Member

Describe the bug

While working with the vcenter plugin (latest release, 0.0.5), I see the following error. This happens when I upgrade my vCenter appliance from 6.7 to version 7.0.

I send logs to Google Cloud, and they look fine. I worry that some logs are getting dropped.

{"level":"error","timestamp":"2021-02-26T14:31:44.566-0500","message":"Scanner error","operator_id":"$.vmware_vcenter.vcenter_input","operator_type":"tcp_input","error":"bufio.Scanner: token too long"}

My assumption is that vcenter 6.7 produced syslog messages that fit within the default buffer, and that 7.0 has messages that are too large.

To Reproduce
Steps to reproduce the behavior:

  1. Setup vcenter with tls. Use vcenter 7.0. Use Stanza 0.14.15.
pipeline:
- type: vmware_vcenter
  listen_address: "0.0.0.0:5142"
  enable_tls: true
  certificate_file: "/opt/tls/stanza.bluemedora.localnet.crt"
  private_key_file: "/opt/tls/stanza.bluemedora.localnet.key"
  output: google
- id: google
  type: google_cloud_output
  project_id: <redacted>
  credentials_file: "/opt/observiq/stanza/log_credentials.json"

Expected behavior
A clear and concise description of what you expected to happen.

Stanza should handle the log message

@jsirianni jsirianni added the bug Something isn't working label Feb 26, 2021
@jsirianni jsirianni self-assigned this Feb 26, 2021
@jsirianni jsirianni changed the title {"level":"error","timestamp":"2021-02-26T14:31:44.566-0500","message":"Scanner error","operator_id":"$.vmware_vcenter.vcenter_input","operator_type":"tcp_input","error":"bufio.Scanner: token too long"} tcp input buffer is too small for vcenter syslog Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant