mirror of
https://github.com/netsampler/goflow2.git
synced 2024-05-06 15:54:52 +00:00
22 lines
366 B
Plaintext
22 lines
366 B
Plaintext
![]() |
input {
|
||
|
gelf {
|
||
|
port => 12201
|
||
|
}
|
||
|
file {
|
||
|
path => "/var/log/goflow/*.log"
|
||
|
type => "log"
|
||
|
}
|
||
|
}
|
||
|
filter {
|
||
|
json {
|
||
|
source => "message"
|
||
|
target => "flow"
|
||
|
remove_field => ["message"]
|
||
|
}
|
||
|
}
|
||
|
output {
|
||
|
elasticsearch {
|
||
|
hosts => ["elasticsearch:9200"]
|
||
|
index => "logstash-%{+YYYY-MM-dd}"
|
||
|
}
|
||
|
}
|