{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-codec-netflow/issues/6","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-codec-netflow/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-codec-netflow/issues/6/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-codec-netflow/issues/6/events","html_url":"https://github.com/logstash-plugins/logstash-codec-netflow/issues/6","id":67860288,"number":6,"title":"Template length doesnt fit cleanly into flowset","user":{"login":"msheiny","id":1727935,"avatar_url":"https://avatars.githubusercontent.com/u/1727935?v=3","gravatar_id":"","url":"https://api.github.com/users/msheiny","html_url":"https://github.com/msheiny","followers_url":"https://api.github.com/users/msheiny/followers","following_url":"https://api.github.com/users/msheiny/following{/other_user}","gists_url":"https://api.github.com/users/msheiny/gists{/gist_id}","starred_url":"https://api.github.com/users/msheiny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msheiny/subscriptions","organizations_url":"https://api.github.com/users/msheiny/orgs","repos_url":"https://api.github.com/users/msheiny/repos","events_url":"https://api.github.com/users/msheiny/events{/privacy}","received_events_url":"https://api.github.com/users/msheiny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-12T01:54:18Z","updated_at":"2015-08-18T12:13:01Z","closed_at":null,"body":"I haven't really dug into this but on our Cisco I saw issues with the following lines and ended up commenting them out:\r\n\r\n>           # Template shouldn't be longer than the record and there should\r\n>           # be at most 3 padding bytes\r\n>           if template.num_bytes > length or ! (length % template.num_bytes).between?(0, 3)\r\n>           @logger.warn(\"Template length doesn't fit cleanly into flowset\", :template_id => record.flowset_id, :template_length => template.num_bytes, :record_length => length)\r\n>            next\r\n>          end\r\n\r\nAfter I commented it out, I've been getting netflow collection without issue. Can anyone illuminate a setting I can look at to work-around this without commenting? Perhaps we can provide a new flag to the codec option that allows us to simply skip this check?\r\n\r\nThanks in advance for any advice."},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-codec-netflow/issues/comments/132188679","html_url":"https://github.com/logstash-plugins/logstash-codec-netflow/issues/6#issuecomment-132188679","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-codec-netflow/issues/6","id":132188679,"user":{"login":"bodgit","id":559268,"avatar_url":"https://avatars.githubusercontent.com/u/559268?v=3","gravatar_id":"","url":"https://api.github.com/users/bodgit","html_url":"https://github.com/bodgit","followers_url":"https://api.github.com/users/bodgit/followers","following_url":"https://api.github.com/users/bodgit/following{/other_user}","gists_url":"https://api.github.com/users/bodgit/gists{/gist_id}","starred_url":"https://api.github.com/users/bodgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodgit/subscriptions","organizations_url":"https://api.github.com/users/bodgit/orgs","repos_url":"https://api.github.com/users/bodgit/repos","events_url":"https://api.github.com/users/bodgit/events{/privacy}","received_events_url":"https://api.github.com/users/bodgit/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T12:13:01Z","updated_at":"2015-08-18T12:13:01Z","body":"On this line:\r\n\r\nhttps://github.com/logstash-plugins/logstash-codec-netflow/blob/master/lib/logstash/codecs/netflow.rb#L236\r\n\r\nIf you make the line (basically the `.clone`):\r\n\r\n```ruby\r\nfield = @fields[type].clone\r\n```\r\n\r\nDoes that fix the conflicting length problem?"}}