# Logstash Netflow Codec support for Multiple Definition files

**URL:** <https://discuss.elastic.co/t/logstash-netflow-codec-support-for-multiple-definition-files/237998>\
**Category:** Logstash\
**Created:** [June 22, 2020, 4:41am UTC](https://discuss.elastic.co/t/logstash-netflow-codec-support-for-multiple-definition-files/237998 "2020-06-22T04:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bniranjanbhat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bniranjanbhat/32/70776_2.png) [@bniranjanbhat](https://discuss.elastic.co/u/bniranjanbhat)\
**Post date:** [June 22, 2020, 4:41am UTC](https://discuss.elastic.co/t/logstash-netflow-codec-support-for-multiple-definition-files/237998/1 "2020-06-22T04:41:09Z")

</div>

Hi All,

I am trying to get the [netflow codec](https://www.elastic.co/guide/en/logstash/master/plugins-codecs-netflow.html#plugins-codecs-netflow) work with multiple definition files.  
I understand that "netflow\_definitions" configuration option is a valid file system path.  
However, when I try to configure this path as a directory and include multiple netflow definition yaml files, logstash errors out with the following error:

```auto
:exception=>"RuntimeError", :message=>"LogStash::Codecs::Netflow: Bad syntax in definitions file /usr/share/logstash/pipeline/elastiflow/definitions", :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-codec-netflow-4.2.1/lib/logstash/codecs/netflow.rb:382:in load_definitions'",

```

---

<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 20, 2020, 4:41am UTC](https://discuss.elastic.co/t/logstash-netflow-codec-support-for-multiple-definition-files/237998/2 "2020-07-20T04:41:11Z")

</div>

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