【发布时间】:2018-05-22 17:10:00
【问题描述】:
我使用文件夹作为输入:
input {
file {
path => "C:/ProjectName/Uploads/*"
start_position => "beginning"
sincedb_path => "dev/null"
}
}
作为输出:
output {
elasticsearch {
hosts => "localhost"
index => "manual_index_name" # want filename here
document_type => "_doc"
}
}
我希望 elasticsearch 中的索引是被索引的文件的名称。 我尝试了这个答案的变体但没有成功,因为我不清楚它在做什么:https://stackoverflow.com/a/40156466/6483906
【问题讨论】: