Skip to content

Commit

Permalink
Netflow example (#280)
Browse files Browse the repository at this point in the history
* Upgrading logstash container to 8.9.2
* Adding netflow udp pipeline example
  • Loading branch information
epacke authored Feb 15, 2025
1 parent 68db016 commit 8825dd0
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
- "5245:5245"
- "9600:9600"
- "5060:5060"
- "2055:2055/udp"
volumes:
- "./logstash/logstash-config/logstash.yml:/usr/share/logstash/config/logstash.yml"
- "./logstash/logstash-config/pipelines.yml:/usr/share/logstash/config/pipelines.yml"
Expand Down
2 changes: 1 addition & 1 deletion logstash/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM logstash:8.1.1
FROM logstash:8.9.2

USER root

Expand Down
1 change: 1 addition & 0 deletions logstash/logstash-config/pipeline/netflow/filter.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
filter {}
11 changes: 11 additions & 0 deletions logstash/logstash-config/pipeline/netflow/input.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
input {
# Netflow
udp {
port => 2055
codec => netflow {
versions => [5,9,10]
include_flowset_id => "true"
}
type => "netflow"
}
}
7 changes: 7 additions & 0 deletions logstash/logstash-config/pipeline/netflow/output.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
output {
http {
format => "json"
http_method => "post"
url => "${BACKEND_ENDPOINT:http://pipeline-ui:8080/api/v1/receiveLogstashOutput}"
}
}
2 changes: 2 additions & 0 deletions logstash/logstash-config/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
path.config: "/usr/share/logstash/pipeline/f5-syslog"
- pipeline.id: generic-json
path.config: "/usr/share/logstash/pipeline/generic-json"
- pipeline.id: netflow
path.config: "/usr/share/logstash/pipeline/netflow"

0 comments on commit 8825dd0

Please sign in to comment.