- Integration plugins
- aws
- elastic_enterprise_search
- jdbc
- kafka
- v11.5.3
- v11.5.2
- v11.5.1
- v11.5.0
- v11.4.2
- v11.4.1
- v11.4.0
- v11.3.4
- v11.3.3
- v11.3.2
- v11.3.1
- v11.3.0
- v11.2.1
- v11.2.0
- v11.1.0
- v11.0.0
- v10.12.1
- v10.12.0
- v10.11.0
- v10.10.0
- v10.9.0
- v10.8.2
- v10.8.1
- v10.8.0
- v10.7.7
- v10.7.6
- v10.7.5
- v10.7.4
- v10.7.3
- v10.7.2
- v10.7.1
- v10.7.0
- v10.6.0
- v10.5.3
- v10.5.2
- v10.5.1
- v10.5.0
- v10.4.0
- v10.3.0
- v10.2.0
- v10.1.0
- v10.0.1
- v10.0.0
- logstash
- rabbitmq
- snmp
- Input plugins
- azure_event_hubs
- beats
- v7.0.0
- v6.9.1
- v6.9.0
- v6.8.4
- v6.8.3
- v6.8.2
- v6.8.1
- v6.8.0
- v6.7.2
- v6.7.1
- v6.7.0
- v6.6.4
- v6.6.3
- v6.6.2
- v6.6.1
- v6.6.0
- v6.5.0
- v6.4.4
- v6.4.3
- v6.4.1
- v6.4.0
- v6.3.1
- v6.3.0
- v6.2.6
- v6.2.5
- v6.2.4
- v6.2.3
- v6.2.2
- v6.2.1
- v6.2.0
- v6.1.6
- v6.1.5
- v6.1.4
- v6.1.3
- v6.1.2
- v6.1.1
- v6.1.0
- v6.0.14
- v6.0.13
- v6.0.12
- v6.0.11
- v6.0.10
- v6.0.9
- v6.0.8
- v6.0.7
- v6.0.6
- v6.0.5
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v6.0.0
- v5.1.11
- v5.1.10
- v5.1.9
- v5.1.8
- v5.1.7
- v5.1.6
- v5.1.5
- v5.1.4
- v5.1.3
- v5.1.0
- v5.0.16
- v5.0.15
- v5.0.14
- v5.0.13
- v5.0.11
- v5.0.10
- v5.0.9
- v5.0.8
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v3.1.32
- v3.1.31
- v3.1.30
- v3.1.29
- v3.1.28
- v3.1.27
- v3.1.26
- v3.1.25
- v3.1.24
- v3.1.23
- v3.1.22
- v3.1.21
- v3.1.20
- v3.1.19
- v3.1.18
- v3.1.17
- cloudwatch
- couchdb_changes
- dead_letter_queue
- drupal_dblog
- elastic_agent
- elastic_serverless_forwarder
- elasticsearch
- v4.20.5
- v4.20.4
- v4.20.3
- v4.20.2
- v4.20.1
- v4.20.0
- v4.19.1
- v4.19.0
- v4.18.0
- v4.17.2
- v4.17.1
- v4.17.0
- v4.16.0
- v4.15.0
- v4.14.0
- v4.13.0
- v4.12.3
- v4.12.2
- v4.12.1
- v4.12.0
- v4.11.0
- v4.10.0
- v4.9.3
- v4.9.2
- v4.9.1
- v4.9.0
- v4.8.1
- v4.8.0
- v4.7.1
- v4.7.0
- v4.6.2
- v4.6.1
- v4.6.0
- v4.5.0
- v4.4.0
- v4.3.3
- v4.3.2
- v4.3.1
- v4.3.0
- v4.2.1
- v4.2.0
- v4.1.1
- v4.1.0
- v4.0.6
- v4.0.5
- v4.0.4
- eventlog
- exec
- file
- ganglia
- gelf
- gemfire
- generator
- github
- google_cloud_storage
- google_pubsub
- graphite
- heartbeat
- heroku
- http
- http_poller
- imap
- irc
- jdbc
- v5.5.1
- v5.5.0
- v5.4.11
- v5.4.10
- v5.4.9
- v5.4.8
- v5.4.7
- v5.4.6
- v5.4.5
- v5.4.4
- v5.4.3
- v5.4.2
- v5.4.1
- v5.4.0
- v5.3.0
- v5.2.6
- v5.2.5
- v5.2.4
- v5.2.3
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.10
- v5.1.8
- v5.1.7
- v5.1.6
- v5.1.5
- v5.1.4
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.3.19
- v4.3.18
- v4.3.17
- v4.3.16
- v4.3.14
- v4.3.13
- v4.3.12
- v4.3.11
- v4.3.9
- v4.3.8
- v4.3.7
- v4.3.6
- v4.3.5
- v4.3.4
- v4.3.3
- v4.3.2
- v4.3.1
- v4.3.0
- v4.2.4
- v4.2.3
- v4.2.2
- v4.2.1
- jms
- jmx
- journald
- kafka
- v11.5.3
- v11.5.2
- v11.5.1
- v11.5.0
- v11.4.2
- v11.4.1
- v11.4.0
- v11.3.4
- v11.3.3
- v11.3.2
- v11.3.1
- v11.3.0
- v11.2.1
- v11.2.0
- v11.1.0
- v11.0.0
- v10.12.1
- v10.12.0
- v10.11.0
- v10.10.0
- v10.9.0
- v10.8.2
- v10.8.1
- v10.8.0
- v10.7.7
- v10.7.6
- v10.7.5
- v10.7.4
- v10.7.3
- v10.7.2
- v10.7.1
- v10.7.0
- v10.6.0
- v10.5.3
- v10.5.2
- v10.5.1
- v10.5.0
- v10.4.0
- v10.3.0
- v10.2.0
- v10.1.0
- v10.0.1
- v10.0.0
- v9.1.0
- v9.0.1
- v9.0.0
- v8.3.1
- v8.3.0
- v8.2.1
- v8.2.0
- v8.1.1
- v8.1.0
- v8.0.6
- v8.0.4
- v8.0.2
- v8.0.0
- v7.0.0
- v6.3.4
- v6.3.3
- v6.3.2
- v6.3.0
- kinesis
- log4j
- logstash
- lumberjack
- meetup
- neo4j
- pipe
- puppet_facter
- rabbitmq
- rackspace
- redis
- relp
- rss
- s3
- salesforce
- snmp
- snmptrap
- sqlite
- sqs
- stdin
- stomp
- syslog
- tcp
- v6.4.4
- v6.4.3
- v6.4.2
- v6.4.1
- v6.4.0
- v6.3.5
- v6.3.4
- v6.3.3
- v6.3.2
- v6.3.1
- v6.3.0
- v6.2.7
- v6.2.6
- v6.2.5
- v6.2.4
- v6.2.3
- v6.2.2
- v6.2.1
- v6.2.0
- v6.1.1
- v6.1.0
- v6.0.10
- v6.0.9
- v6.0.8
- v6.0.7
- v6.0.6
- v6.0.5
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v6.0.0
- v5.2.7
- v5.2.6
- v5.2.5
- v5.2.4
- v5.2.3
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.0
- v5.0.10
- v5.0.9
- v5.0.8
- v5.0.7
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.2.4
- v4.2.3
- v4.2.2
- v4.1.2
- udp
- unix
- varnishlog
- websocket
- wmi
- xmpp
- zenoss
- zeromq
- Output plugins
- appsearch
- boundary
- circonus
- cloudwatch
- csv
- datadog
- datadog_metrics
- elastic_app_search
- elastic_workplace_search
- elasticsearch
- v11.22.10
- v11.22.9
- v11.22.8
- v11.22.7
- v11.22.6
- v11.22.5
- v11.22.4
- v11.22.3
- v11.22.2
- v11.22.1
- v11.22.0
- v11.21.0
- v11.20.1
- v11.20.0
- v11.19.0
- v11.18.0
- v11.17.0
- v11.16.0
- v11.15.9
- v11.15.8
- v11.15.7
- v11.15.6
- v11.15.5
- v11.15.4
- v11.15.2
- v11.15.1
- v11.15.0
- v11.14.1
- v11.14.0
- v11.13.1
- v11.13.0
- v11.12.4
- v11.12.3
- v11.12.2
- v11.12.1
- v11.12.0
- v11.11.0
- v11.10.0
- v11.9.3
- v11.9.2
- v11.9.1
- v11.9.0
- v11.8.0
- v11.7.0
- v11.6.0
- v11.5.0
- v11.4.2
- v11.4.1
- v11.4.0
- v11.3.3
- v11.3.2
- v11.3.1
- v11.3.0
- v11.2.3
- v11.2.2
- v11.2.1
- v11.2.0
- v11.1.0
- v11.0.5
- v11.0.4
- v11.0.3
- v11.0.2
- v11.0.1
- v11.0.0
- v10.8.6
- v10.8.4
- v10.8.3
- v10.8.2
- v10.8.1
- v10.8.0
- v10.7.3
- v10.7.0
- v10.6.2
- v10.6.1
- v10.6.0
- v10.5.1
- v10.5.0
- v10.4.2
- v10.4.1
- v10.4.0
- v10.3.3
- v10.3.2
- v10.3.1
- v10.3.0
- v10.2.3
- v10.2.2
- v10.2.1
- v10.2.0
- v10.1.0
- v10.0.2
- v10.0.1
- v9.4.0
- v9.3.2
- v9.3.1
- v9.3.0
- v9.2.4
- v9.2.3
- v9.2.1
- v9.2.0
- v9.1.4
- v9.1.3
- v9.1.2
- v9.1.1
- v9.0.3
- v9.0.2
- v9.0.0
- v8.2.2
- v8.2.0
- v8.1.1
- v8.0.1
- v8.0.0
- v7.4.3
- v7.4.2
- v7.4.1
- v7.4.0
- v7.3.8
- v7.3.7
- v7.3.6
- v7.3.5
- v7.3.4
- v7.3.3
- v7.3.2
- elasticsearch_java
- exec
- file
- ganglia
- gelf
- gemfire
- google_bigquery
- google_cloud_storage
- google_pubsub
- graphite
- graphtastic
- hipchat
- http
- influxdb
- irc
- jira
- jms
- juggernaut
- kafka
- v11.5.3
- v11.5.2
- v11.5.1
- v11.5.0
- v11.4.2
- v11.4.1
- v11.4.0
- v11.3.4
- v11.3.3
- v11.3.2
- v11.3.1
- v11.3.0
- v11.2.1
- v11.2.0
- v11.1.0
- v11.0.0
- v10.12.1
- v10.12.0
- v10.11.0
- v10.10.0
- v10.9.0
- v10.8.2
- v10.8.1
- v10.8.0
- v10.7.7
- v10.7.6
- v10.7.5
- v10.7.4
- v10.7.3
- v10.7.2
- v10.7.1
- v10.7.0
- v10.6.0
- v10.5.3
- v10.5.2
- v10.5.1
- v10.5.0
- v10.4.0
- v10.3.0
- v10.2.0
- v10.1.0
- v10.0.1
- v10.0.0
- v8.1.0
- v8.0.2
- v8.0.1
- v8.0.0
- v7.3.2
- v7.3.1
- v7.3.0
- v7.2.1
- v7.2.0
- v7.1.3
- v7.1.2
- v7.1.1
- v7.1.0
- v7.0.10
- v7.0.8
- v7.0.7
- v7.0.6
- v7.0.4
- v7.0.3
- v7.0.1
- v7.0.0
- v6.2.4
- v6.2.2
- v6.2.1
- v6.2.0
- librato
- loggly
- logstash
- lumberjack
- metriccatcher
- monasca_log_api
- mongodb
- nagios
- nagios_nsca
- neo4j
- null
- opentsdb
- pagerduty
- pipe
- rabbitmq
- rackspace
- redis
- redmine
- riak
- riemann
- s3
- slack
- sns
- solr_http
- sqs
- statsd
- stdout
- stomp
- syslog
- tcp
- timber
- udp
- webhdfs
- websocket
- xmpp
- zabbix
- zeromq
- Filter plugins
- age
- aggregate
- alter
- anonymize
- bytes
- checksum
- cidr
- cipher
- clone
- collate
- csv
- date
- de_dot
- dissect
- dns
- drop
- elapsed
- elastic_integration
- elasticsearch
- emoji
- environment
- extractnumbers
- fingerprint
- geoip
- grok
- hashid
- http
- i18n
- jdbc_static
- v5.5.1
- v5.5.0
- v5.4.11
- v5.4.10
- v5.4.9
- v5.4.8
- v5.4.7
- v5.4.6
- v5.4.5
- v5.4.4
- v5.4.3
- v5.4.2
- v5.4.1
- v5.4.0
- v5.3.0
- v5.2.6
- v5.2.5
- v5.2.4
- v5.2.3
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.10
- v5.1.8
- v5.1.7
- v5.1.6
- v5.1.5
- v5.1.4
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v1.1.0
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- jdbc_streaming
- v5.5.1
- v5.5.0
- v5.4.11
- v5.4.10
- v5.4.9
- v5.4.8
- v5.4.7
- v5.4.6
- v5.4.5
- v5.4.4
- v5.4.3
- v5.4.2
- v5.4.1
- v5.4.0
- v5.3.0
- v5.2.6
- v5.2.5
- v5.2.4
- v5.2.3
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.10
- v5.1.8
- v5.1.7
- v5.1.6
- v5.1.5
- v5.1.4
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.7
- v5.0.6
- v5.0.5
- v5.0.4
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v1.0.10
- v1.0.9
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- json
- json_encode
- kv
- math
- memcached
- metaevent
- metricize
- metrics
- multiline
- mutate
- oui
- prune
- punct
- range
- ruby
- sleep
- split
- syslog_pri
- throttle
- tld
- translate
- truncate
- unique
- urldecode
- useragent
- uuid
- xml
- yaml
- zeromq
- Codec plugins
Netflow codec plugin v4.1.2
editNetflow codec plugin v4.1.2
edit- Plugin version: v4.1.2
- Released on: 2018-09-10
- Changelog
For other versions, see the overview list.
To learn more about Logstash, see the Logstash Reference.
Getting help
editFor questions about the plugin, open a topic in the Discuss forums. For bugs or feature requests, open an issue in Github. For the list of Elastic supported plugins, please consult the Elastic Support Matrix.
Description
editThe "netflow" codec is used for decoding Netflow v5/v9/v10 (IPFIX) flows.
Supported Netflow/IPFIX exporters
editThis codec supports:
- Netflow v5
- Netflow v9
- IPFIX
The following Netflow/IPFIX exporters have been seen and tested with the most recent version of the Netflow Codec:
Netflow exporter | v5 | v9 | IPFIX | Remarks |
---|---|---|---|---|
Barracuda Firewall |
y |
With support for Extended Uniflow |
||
Cisco ASA |
y |
|||
Cisco ASR 1k |
N |
Fails because of duplicate fields |
||
Cisco ASR 9k |
y |
|||
Cisco IOS 12.x |
y |
|||
Cisco ISR w/ HSL |
N |
Fails because of duplicate fields, see: https://github.com/logstash-plugins/logstash-codec-netflow/issues/93 |
||
Cisco WLC |
y |
|||
Citrix Netscaler |
y |
Still some unknown fields, labeled netscalerUnknown<id> |
||
fprobe |
y |
|||
Fortigate FortiOS |
y |
|||
Huawei Netstream |
y |
|||
ipt_NETFLOW |
y |
y |
y |
|
Juniper MX |
y |
y |
SW > 12.3R8. Fails to decode IPFIX from Junos 16.1 due to duplicate field names which we currently don’t support. |
|
Mikrotik |
y |
y |
||
nProbe |
y |
y |
y |
L7 DPI fields now also supported |
Nokia BRAS |
y |
|||
OpenBSD pflow |
y |
N |
y |
|
Riverbed |
N |
Not supported due to field ID conflicts. Workaround available in the definitions directory over at Elastiflow https://github.com/robcowart/elastiflow |
||
Sandvine Procera PacketLogic |
y |
v15.1 |
||
Softflowd |
y |
y |
y |
IPFIX supported in https://github.com/djmdjm/softflowd |
Sophos UTM |
y |
|||
Streamcore Streamgroomer |
y |
|||
Palo Alto PAN-OS |
y |
|||
Ubiquiti Edgerouter X |
y |
With MPLS labels |
||
VMware VDS |
y |
Still some unknown fields |
||
YAF |
y |
With silk and applabel, but no DPI plugin support |
||
vIPtela |
y |
Usage
editExample Logstash configuration that will listen on 2055/udp for Netflow v5,v9 and IPFIX:
input { udp { port => 2055 codec => netflow } }
For high-performance production environments the configuration below will decode up to 15000 flows/sec from a Cisco ASR 9000 router on a dedicated 16 CPU instance. If your total flowrate exceeds 15000 flows/sec, you should use multiple Logstash instances.
Note that for richer flows from a Cisco ASA firewall this number will be at least 3x lower.
input { udp { port => 2055 codec => netflow receive_buffer_bytes => 16777216 workers => 16 }
To mitigate dropped packets, make sure to increase the Linux kernel receive buffer limit:
# sysctl -w net.core.rmem_max=$((1024*1024*16))
Netflow Codec Configuration Options
editSetting | Input type | Required |
---|---|---|
a valid filesystem path |
No |
|
No |
||
No |
||
a valid filesystem path |
No |
|
a valid filesystem path |
No |
|
No |
||
No |
cache_save_path
edit- Value type is path
- There is no default value for this setting.
Enables the template cache and saves it in the specified directory. This minimizes data loss after Logstash restarts because the codec doesn’t have to wait for the arrival of templates, but instead reload already received templates received during previous runs.
Template caches are saved as:
cache_ttl
edit- Value type is number
-
Default value is
4000
Netflow v9/v10 template cache TTL (seconds)
include_flowset_id
edit- Value type is boolean
-
Default value is
false
Only makes sense for ipfix, v9 already includes this Setting to true will include the flowset_id in events Allows you to work with sequences, for instance with the aggregate filter
ipfix_definitions
edit- Value type is path
- There is no default value for this setting.
Override YAML file containing IPFIX field definitions
Very similar to the Netflow version except there is a top level Private Enterprise Number (PEN) key added:
pen: id: - :uintN or :ip4_addr or :ip6_addr or :mac_addr or :string - :name id: - :skip
There is an implicit PEN 0 for the standard fields.
See https://github.com/logstash-plugins/logstash-codec-netflow/blob/master/lib/logstash/codecs/netflow/ipfix.yaml for the base set.
netflow_definitions
edit- Value type is path
- There is no default value for this setting.
Override YAML file containing Netflow field definitions
Each Netflow field is defined like so:
id: - default length in bytes - :name id: - :uintN or :ip4_addr or :ip6_addr or :mac_addr or :string - :name id: - :skip
See https://github.com/logstash-plugins/logstash-codec-netflow/blob/master/lib/logstash/codecs/netflow/netflow.yaml for the base set.
On this page
ElasticON events are back!
Learn about the Elastic Search AI Platform from the experts at our live events.
Register now