【发布时间】:2017-12-11 00:25:01
【问题描述】:
如何使用 Logstash 加载二进制文件(pdf、xls、其他...)而不更改其内容。
目前我尝试加载
input {
file {
path => "C:/path/files/*"
type => "gesamt"
start_position => "beginning"
sincedb_path => "NUL"
}
}
filter {
multiline {
pattern => "/.*./gesamt"
negate => true
what => "previous"
}
base64 {
field => "blob"
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "index-name"
pipeline=>"test-pipeline"
}
}
多行过滤器似乎损坏了二进制内容。
【问题讨论】:
标签: elasticsearch logstash logstash-file