Skip to content

Instantly share code, notes, and snippets.

@nl5887
Last active March 7, 2018 15:12
Show Gist options
  • Select an option

  • Save nl5887/328559bfda8eceed2957ac64e41f7423 to your computer and use it in GitHub Desktop.

Select an option

Save nl5887/328559bfda8eceed2957ac64e41f7423 to your computer and use it in GitHub Desktop.
copy.conf
input {
elasticsearch {
hosts => ["src:9200"]
index => "index"
docinfo => true
size => 20
}
}
filter {
mutate {
remove_field => [ "@version", "@timestamp" ]
}
}
output {
elasticsearch {
hosts => ["dst:9200"]
manage_template => false
index => "index"
document_id => "%{[@metadata][_id]}"
workers => 1
}
}
input {
elasticsearch {
hosts => ["127.0.0.1:9242"]
index => "honeytrap"
query => '{"query": { "query_string": { "query": "category:udp AND destination-port:11211" }}}'
docinfo => true
size => 20
}
}
filter{
mutate {
remove_field => [ "@version", "@timestamp" ]
}
}
output {
file {
codec => "json"
path => ["/tmp/11211_udp.json"]
workers => 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment