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

Reduced-size encoding for uint32 is larger than uint32 {:field=>[:uint32, :conn_id] #181

Open
davewat opened this issue Aug 1, 2019 · 4 comments

Comments

@davewat
Copy link

davewat commented Aug 1, 2019

Docker Container
Logstash 7.3
logstash-codec-netflow

Receiving Netflow from Palo Alto

Millions of errors:
[logstash.codecs.netflow ] Reduced-size encoding for uint32 is larger than uint32 {:field=>[:uint32, :conn_id], :length=>8}

No data.

@davewat
Copy link
Author

davewat commented Aug 1, 2019

Issue is invalid field definition for EID 148. Wrong data type is causing the error. The name is also incorrect. Will submit PR with fix.

@davewat davewat mentioned this issue Aug 1, 2019
@jgilman-od
Copy link

This issue is still relevant as of 4.2.1. Merging this PR would be very helpful.

@thealy
Copy link

thealy commented Jan 21, 2022

Seeing the same error using V 7.16.1. Is there any workaround?

@davewat
Copy link
Author

davewat commented Jan 27, 2022

I found that Filebeat handles Netflow very well, and doesn't have this (or other) issues, so we switched over for Netflow. It is a simple listener that forwards everything over to a Kafka topic where we process it further. To help anyone get started, I've included a sample of my config. YMMV:

filebeat.inputs:
- type: netflow
  max_message_size: 10KiB
  host: "0.0.0.0:2055"
  protocols: [ v5, v9, ipfix ]
  expiration_timeout: 30m
  queue_size: 8192
  #custom_definitions:
  #- /data/override.yml
  detect_sequence_reset: true
  
processors:
  - add_tags:
      tags: [netflow]
  - add_fields:
      target: ''
      fields:
        log.group: netflow

output.kafka:
  # initial brokers for reading cluster metadata
  enabled: true
  hosts: ["10.10.10.1:9092", "10.10.10.2:9092", "10.10.10.3:9092"]
  topic: "raw"

logging.level: debug
logging.to_files: true
logging.files:
  path: /var/log/filebeat
  name: filebeat
  keepfiles: 7
  permissions: 0644

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

3 participants