Last active
December 17, 2015 20:38
-
-
Save jordansissel/5668573 to your computer and use it in GitHub Desktop.
tshark + logstash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| logstash agent -e ' | |
| input { | |
| pipe { | |
| type => tshark | |
| # run tshark unprivileged because it's protocol decoders can be buggy. | |
| command => "sudo tcpdump -w - | tshark -i - -lT fieldstshark -lT fields -E separator=, -E quote=d -e ip.src -e ip.dst -e ip.len" | |
| } | |
| } | |
| filter { | |
| csv { | |
| source => "@message" | |
| columns => [ "src", "dst", "bytes" ] | |
| } | |
| mutate { | |
| remove => "@message" | |
| convert => [ "bytes", "integer" ] | |
| } | |
| } | |
| output { | |
| elasticsearch_http { host => "some-server" flush_size => 50 } | |
| } | |
| ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what network bandwidth will this impact ELK ?