# Template length doesn't fit cleanly into flowset

**URL:** https://discuss.elastic.co/t/template-length-doesnt-fit-cleanly-into-flowset/88314
**Category:** Logstash
**Created:** [June 5, 2017, 6:18pm UTC](https://discuss.elastic.co/t/template-length-doesnt-fit-cleanly-into-flowset/88314 "2017-06-05T18:18:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tono](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tono/32/18178_2.png) [@tono](https://discuss.elastic.co/u/tono)
#### Post date: [June 5, 2017, 6:18pm UTC](https://discuss.elastic.co/t/template-length-doesnt-fit-cleanly-into-flowset/88314/1 "2017-06-05T18:18:09Z")

</div>

Hello,

I upgraded to the latest version of logstash (5.4.1) in order to fix an "out of range" error that I was getting when processing netflow packets.

The "out of range" error went away after upgrading the previous logstash versoin (5.3.3) but now I am getting some errors in the logs and I don't see any new data coming in when I look for a firewall that I am using to send logs for testing.

I found other tickets about similar issues to this one but those are for older versions of ELK.

The firewall is an ASAv10 running in AWS  
Current logstash version = 5.4.1  
Current elasticsearch version = 541  
Current kibana version = 5.4.1  
OS = ubuntu 16.04

This is just a piece of the log that is showing me the errors:

a piece of the log that is showing the errors:

`
    [2017-06-02T20:26:00,205][WARN][logstash.codecs.netflow] No matching template for flow id 256
    [2017-06-02T20:26:00,205][WARN][logstash.codecs.netflow] No matching template for flow id 263
    [2017-06-02T20:26:00,205][WARN][logstash.codecs.netflow] No matching template for flow id 256
    [2017-06-02T20:26:00,205][WARN][logstash.codecs.netflow] No matching template for flow id 263
    [2017-06-02T20:26:00,205][WARN][logstash.codecs.netflow] No matching template for flow id 260
    [2017-06-02T20:26:00,205][WARN][logstash.codecs.netflow] No matching template for flow id 256
    [2017-06-02T20:26:00,205][WARN][logstash.codecs.netflow] No matching template for flow id 263
    [2017-06-02T20:26:00,207][WARN][logstash.codecs.netflow] No matching template for flow id 263
    [2017-06-02T20:26:00,258][WARN][logstash.codecs.netflow] No matching template for flow id 256
    [2017-06-02T20:26:00,258][WARN][logstash.codecs.netflow] No matching template for flow id 263
    [2017-06-02T20:26:00,258][WARN][logstash.codecs.netflow] No matching template for flow id 256
    [2017-06-02T20:26:00,258][WARN][logstash.codecs.netflow] No matching template for flow id 263
    [2017-06-02T20:26:00,258][WARN][logstash.codecs.netflow] No matching template for flow id 256
    [2017-06-02T20:26:00,258][WARN][logstash.codecs.netflow] No matching template for flow id 263
    [2017-06-02T20:26:07,020][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>88}
    [2017-06-02T20:26:07,345][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>172}
    [2017-06-02T20:26:07,640][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>172}
    [2017-06-02T20:26:07,991][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>172}
    [2017-06-02T20:26:08,226][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>260}
    [2017-06-02T20:26:18,641][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>172}
    [2017-06-02T20:26:18,907][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>172}
    [2017-06-02T20:26:19,072][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>172}
    [2017-06-02T20:26:19,270][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>172}
    [2017-06-02T20:26:19,598][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>172}
    [2017-06-02T20:26:22,114][WARN][logstash.codecs.netflow] Template length doesn't fit cleanly into flowset {:template_id=>263, :template_length=>62, :record_length=>88}
`

This is my input filter:  
`
input {
udp {
port => 5555
type => netflow
codec => netflow {
netflow_definitions => "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-codec-netflow-3.4.0/lib/logstash/codecs/netflow/netflow.yaml"
versions => [9]
}
}
}
`  
`
output {
elasticsearch {
hosts => ["xx.xx.xx.xx","xx.xx.xx.xx"]
index => "netflow-%{+YYYY.MM.dd}"
user => "some_user"
password => "some_pass"
}
}
`

(I apologize, I couldn't format the logs and filter for better reading correctly)

This is affecting the vilsualizations I created in kibaba as they are not showing data for 1 of the 2 firewalls that are currently sending netflow data to the logstash server.

Any ideas?

Thank you.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 3, 2017, 6:19pm UTC](https://discuss.elastic.co/t/template-length-doesnt-fit-cleanly-into-flowset/88314/2 "2017-07-03T18:19:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
